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

Kevin Korb kmk at sanitarium.net
Tue Jan 29 16:01:03 MST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

With -a you are telling rsync to copy the timestamp difference.  It
can't set a timestamp on nothing.

On 01/29/13 17:58, John Reye wrote:
> 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
> 
> 
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at FutureQuest.net  (work)
	Orlando, Florida		kmk at sanitarium.net (personal)
	Web page:			http://www.sanitarium.net/
	PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iEYEARECAAYFAlEIVK4ACgkQVKC1jlbQAQer5QCg6Ix01H91OwdlF5ufuyrhdlYh
lScAoL2TRkes039e0W5PQ7KPxrMPsgYB
=Vl75
-----END PGP SIGNATURE-----


More information about the rsync mailing list