--fuzzy search over to-be-deleted files to catch moved files and directories

Matt McCutchen matt at mattmccutchen.net
Thu Nov 12 21:35:39 MST 2009

On Wed, 2009-11-11 at 14:32 +0100, H. Langos wrote:
> Unfortunately it still does not solve my problem. "--detect-renamed" 
> hardlinks when it moves deleted files to its temp directory. But then 
> it seems to copy the file to its new location. 
> This breaks the space saving property of rsnapshot (hardlinking files that
> didn't change since the last snapshot). 
> So in order to realy work in my setup one would have to check if the delta
> transfer did change any data at all. If it didn't a hardlink would be made
> instead of a copy.

Ah.  The RFE for the check you describe is:


A currently available alternative is the --detect-moved option added by
"detect-renamed-lax.diff", which will accept a file matching in basename
+ quick check directly, without running the delta-transfer algorithm.
This is risky, but not quite as risky as --detect-renamed-lax.


More information about the rsync mailing list