Public bug reported: See Debian bug #683731 [1] This bug is currently not resoved in debian, but upstream has resolved it. The patch [2] just needs to be applied by debian and ubuntu.
[1: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683731 ] [2: https://git.sarava.org/?p=backupninja.git;a=commitdiff;h=b8b8b46fbaf9acbdc769d311a064ab89bb670ef7 ] My System: Ubuntu Release: Description: Ubuntu 14.04 LTS Release: 14.04 Kernel: Linux 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Package: backupninja 1.0.1-2 --> Description of the debian bug #683731: Backupninja fails to run a rsync action such as: [general] mountpoint = /tmp backupdir = test format = mirror [source] from = local include = /home numericids = 1 The output gives the following error: Info: >>>> starting action 10.test.rsync (because of --now) Debug: yes Debug: executing handler in locked section controlled by /var/lock/backupninja/10.test.rsync Info: Syncing /home on /tmp/test//home//... Debug: nice -n 0 /usr/bin/rsync -av --delete --recursive //home/ /tmp/test//home// su: unrecognized option '--delete' Usage: su [options] [LOGIN] Options: -c, --command COMMAND pass COMMAND to the invoked shell -h, --help display this help message and exit -, -l, --login make the shell a login shell -m, -p, --preserve-environment do not reset environment variables, and keep the same shell -s, --shell SHELL use SHELL instead of the default in passwd Fatal: Rsync error 2 when trying to transfer /home Fatal: <<<< finished action 10.test.rsync: FAILED Debug: send report to root Info: FINISHED: 1 actions run. 1 fatal. 0 error. 0 warning. Running backupninja through `bash -x` shows that the `--delete` option from the rsync command is not included in the single quote for the `su -c` command: nice -n 0 su -c '/usr/bin/rsync -av' --delete '--recursive --delete-excluded //home/ /tmp/test//home//' By the way, the command in the debugging output differs from what is being run by backupninja (it doesn't show the `su -c` part). ** Affects: backupninja (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1323552 Title: [rsync] badly quotes the --delete option To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/backupninja/+bug/1323552/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs