I wrote a script that uses rsync a bit and wanted to use it. While testing was fine, the real life was more complicated :) Basically, my rsync command looks like that: rsync -v -azu -b --backup-dir /var/backup/files/ /var/profiles/files/ username@host:/ When I execute it where both machines have rsync 2.6.3, everything runs fine. When I execute it on a machine with rsync 2.6.6, and the remote machine has rsync 2.6.3, the command fails: rsync: on remote machine: --backup-dir-dels: unknown option This is weird to me, as I didn't change the options, and I don't use any "--backup-dir-dels" (which is not documented in the man by the way). How can I get around this problem? I can't really update rsync on all machines. -- Tomek
On Mon, Dec 05, 2005 at 03:18:37PM +0100, Tomasz Chmielewski wrote:> rsync: on remote machine: --backup-dir-dels: unknown optionThe --backup-dir-dels option is not an official option, so someone has modified your version of rsync (quite possibly using a patch from the "patches" dir of rsync, but those options might not be well tested). Switching your 2.6.6 to an official rsync 2.6.6 will avoid this problem. Or, if you have the source code to the version that is on your system, you can change this section of code in options.c: if (backup_dir_dels) { args[ac++] = "--backup-dir-dels"; args[ac++] = backup_dir_dels; } Change the first line to look like this: if (backup_dir_dels && backup_dir_dels != backup_dir) { You might also wish to notify whomever supplied your rsync that the version of the backup-dir-dels patch that they're using has a compatibility problem (which is fixed in the CVS version). ..wayne..