--backup-dir-dels=DIR patch

Robert DuToit rdutoit at comcast.net
Sun Mar 9 03:33:16 GMT 2008

On Mar 8, 2008, at 10:16 PM, Matt McCutchen wrote:

> On Sat, 2008-03-08 at 21:52 -0500, Robert DuToit wrote:
>> I think I am missing something with the backup-dir-dels.diff patch.
>> How does that differ from the original --backup -backup-dir=DIR
>> option?
> It lets you specify a different suffix and/or directory for deleted
> destination files as compared to overwritten files.
>> Using the original one works fine (on patched or non-patched
>> rsync), putting deleted source files into the DIR on destination, but
>> when I run --backup -backup-dir-dels=DIR, nothing happens to the
>> deleted files.
> This is the result of a logic error in the backup-dir-dels patch: it
> decides whether to do a simple or parallel-tree backup based on  
> whether
> --backup-dir is set, regardless of whether the file in question is  
> being
> overwritten or deleted.  Thus, --backup-dir-dels currently only has an
> effect if you also specify a --backup-dir.  I will look into getting
> this fixed.

Ah - got it. thanks, Rob

> Matt

More information about the rsync mailing list