rsync handler fails when trying to include paths with spaces
first, thank you for backupninja and such a useful set of handlers. i've been using it for years with only minor issues.
however, i am now bumping into a problem with the rsync handler when i try to set: include = /srv/share/Videos/TV Shows the rsync backend incorrectly splits this into attempts to backup //srv/share/Videos/TV/ and /Shows/ (debug output below). i've tried quotes and backslashes to no better effect.
please let me know if there is any additional information that would be useful.
thanks again!
% sudo backupninja --debug --test --run /etc/backup.d/99.rsync Debug: check_perms /etc/backup.d Debug: perms: drwxrwx--- Debug: gperm: rwx Debug: wperm: --- Debug: check_perms /etc/backup.d/99.rsync Debug: perms: -rw------- Debug: gperm: --- Debug: wperm: --- Info: >>>> starting action /etc/backup.d/99.rsync (because of --now) Debug: yes Debug: executing handler in locked section controlled by /var/lock/backupninja/_etc_backup.d_99.rsync Info: Syncing /srv/share/Videos/TV on /srv/backups/rsync/gondolin//srv/share/Videos/TV/TV.0/... Debug: nice -n 0 su -c /usr/bin/rsync -av --delete --recursive --dry-run --delete-excluded //srv/share/Videos/TV/ /srv/backups/rsync/gondolin//srv/share/Videos/TV/TV.0/ X11 connection rejected because of wrong authentication. sending incremental file list rsync: change_dir "//srv/share/Videos/TV" failed: Not a directory (20) created directory /srv/backups/rsync/gondolin//srv/share/Videos/TV/TV.0 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1] sent 20 bytes received 88 bytes 216.00 bytes/sec total size is 0 speedup is 0.00 (DRY RUN) Warning: Rsync error 23 when trying to transfer /srv/share/Videos/TV Info: Syncing Shows on /srv/backups/rsync/gondolin/Shows/Shows.0/... Debug: nice -n 0 su -c /usr/bin/rsync -av --delete --recursive --dry-run --delete-excluded /Shows/ /srv/backups/rsync/gondolin/Shows/Shows.0/ X11 connection rejected because of wrong authentication. sending incremental file list rsync: change_dir "/Shows" failed: No such file or directory (2) created directory /srv/backups/rsync/gondolin/Shows/Shows.0 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1] sent 20 bytes received 76 bytes 192.00 bytes/sec total size is 0 speedup is 0.00 (DRY RUN) Warning: Rsync error 23 when trying to transfer Shows Warning: <<<< finished action /etc/backup.d/99.rsync: WARNING Debug: send report to root Info: FINISHED: 1 actions run. 0 fatal. 0 error. 2 warning.
(from redmine: created on 2015-07-24)
Edited by Guillaume Subiron