DO NOT REPLY [Bug 5583] Don't write out an unchanged file if all the checksums matched

samba-bugs at samba-bugs at
Fri Nov 13 03:49:41 MST 2009

henrik-rsync at changed:

           What    |Removed                     |Added
                 CC|                            |henrik-rsync at

------- Comment #4 from henrik-rsync at  2009-11-13 04:49 CST -------
Here's my "me too" comment on the issue (feel free to move it to a separate bug
depending on this one):

I have stumbled upon the same issue in connection with rsnapshot and rsync with
the "--detect-renamed" patch. 

Basically rsnapshot works like this: On the first run creates a full copy of a
directory tree /src to /dst/0. Then the next time it rotates /dst/(x) to
/dst/(x+1) and creates a copy with just hard links from /dst/1 to /dst/0 and
then calls rsync to transfer the changes between /src and /dst/0, effectively
creating a differential backup at the granularity of files.

I applied the detect-renamed patch to avoid multiple copies of big files when
they are moved around in the directory tree. 

The patch works in so far as it finds the correct base files in /dst.
Then it uses the delta algorithm to make sure that no coincidental match of
filename,size and mtime results in a false positive.

Unfortunately usage of the delta algorithm creates a new copy of the file at
/dst even if the content is the same as the base file (instead of using a
hardlink to the base file).

Configure bugmail:
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the rsync mailing list