--backup-dir-dels breaks compatibility

Wayne Davison wayned at samba.org
Mon Dec 5 16:37:38 GMT 2005

On Mon, Dec 05, 2005 at 03:18:37PM +0100, Tomasz Chmielewski wrote:
> rsync: on remote machine: --backup-dir-dels: unknown option

The --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).


More information about the rsync mailing list