After upgrade to 2.6.8: > rsync: --delete does not work without -r or -d. > rsync error: syntax or usage error (code 1) at main.c(1231) [client=2.6.8] Actual command line us using --delete and -a. -a is supposed to mean -rlptgoD. Many existing scripts broken by this, all needing a fix, but not clear what best fix is. Should I be adding -r to the command line, even though -a already implies it!? I think that --delete with -a should _not_ be causing this failure.
Please specify more information for how you saw this problem.
One sample command from script is: rsync --size-only -a -z --partial -L --delete \ --exclude-from=excludefile \ $srcHostDir \ $destDir The emailed output from the cron job contains only: > rsync: --delete does not work without -r or -d. > rsync error: syntax or usage error (code 1) at main.c(1231) [client=2.6.8]
I can't duplicate the problem, nor can I see in the code how this could happen. Do you have any popt aliases defined? Are you using a tweaked version (e.g. one packaged by an OS distributor)?
Silly me. Found the problem. Out of the 20+ instances of rsync in the script, only 1 didn't have -a, but still had --delete. So it's our fault (kind of).