--detect-renamed --detect-moved and -b

Thomas Gutzler thomas.gutzler at gmail.com
Thu Nov 12 23:40:04 MST 2009


Matt McCutchen wrote:
> On Wed, 2009-11-11 at 20:27 +0800, Thomas Gutzler wrote:
>> I played around with the combination of rsync --detect-renamed
>> --detect-moved and -b.
> 
> You can't combine the --detect-renamed and --detect-moved options
> because they make use of the partial dir in incompatible ways.  The last
> option on the command line takes priority.  (Yes, the implementation of
> --detect-moved is a hack.  No, I don't care to improve it myself.)

I see. That's ok though, because I'm much more interested in the case
that a user renames a directory which contained 100G of data than the
case that a user renames 100G worth of files.

> Yes, the current design is that a deleted destination file is backed up
> even if it was also detected as a rename.
> 
> In addition, your case tickles an awkward-to-fix bug in the
> --detect-renamed implementation: renames into new directories are not
> processed because their partial dirs are not available yet.  See:
> 
> http://lists.samba.org/archive/rsync/2007-December/019469.html

Great. I'm running an --include='*/' --exclude='*' anyway, so I've got
the directories. Any chance for a --exclude-moved-from-backup flag?

Tom



More information about the rsync mailing list