--compare-dest -- copy ONLY files with content-differences between 2 directories... to a third

John Reye jononanon at googlemail.com
Tue Jan 29 15:58:38 MST 2013


Hi,

I'm having trouble with --compare-dest, to copy only files that differ in
content.

Here are the commands used thusfar:
rsync -av  --checksum --delete  --progress --stats --compare-dest=../old
new/ new_archive
rsync -av  --checksum --delete  --progress --stats --compare-dest=../new
old/ old_archive

old/
     a.txt

new/
     a.txt


Note: both a.txt are the same (except for a different timestamp).
a.txt contains just 2 characters: 'a' and '\n'

Now the problem: In the output I see a.txt get copied!!!
old_archive/
     a.txt

new_archive/
     a.txt

I do NOT want this!
Why is a.txt getting copied, when it is identical in its content?

Please can you help, so that only files that DIFFER IN CONTENT ONLY... get
copied.

Thanks.
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20130129/08da6419/attachment.html>


More information about the rsync mailing list