<div class="gmail_quote">Hello,<br><br>thanks for the reply, but I must confess: I don't understand it.<br><br>How would I go about using rsync to copy only files with content difference between folder new and old (or existance-only in folder new)... from folder new to a third folder new_archive...<br>

???<br>along the lines of:<div class="im"><br><br>rsync -av  --checksum --delete --progress --stats --compare-dest=../old new/ new_archive <br><br></div>(I've been trying around with --ignore-times and --size-only... but that didn't lead anywhere...)<br>

<br>Can this actually be done with rsync?<br><br>Thanks,<br>John<br><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Wed, Jan 30, 2013 at 12:01 AM, Kevin Korb <span dir="ltr"><<a href="mailto:kmk@sanitarium.net" target="_blank">kmk@sanitarium.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
With -a you are telling rsync to copy the timestamp difference.  It<br>
can't set a timestamp on nothing.<br>
<div><div><br>
On 01/29/13 17:58, John Reye wrote:<br>
> Hi,<br>
><br>
> I'm having trouble with --compare-dest, to copy only files that<br>
> differ in content.<br>
><br>
> Here are the commands used thusfar: rsync -av  --checksum --delete<br>
> --progress --stats --compare-dest=../old new/ new_archive <br><br>> rsync -av --checksum --delete  --progress --stats --compare-dest=../new old/<br>
> old_archive<br>
><br>
> old/ a.txt<br>
><br>
> new/ a.txt<br>
><br>
><br>
> Note: both a.txt are the same (except for a different timestamp).<br>
> a.txt contains just 2 characters: 'a' and '\n'<br>
><br>
> Now the problem: In the output I see a.txt get copied!!!<br>
> old_archive/ a.txt<br>
><br>
> new_archive/ a.txt<br>
><br>
> I do NOT want this! Why is a.txt getting copied, when it is<br>
> identical in its content?<br>
><br>
> Please can you help, so that only files that DIFFER IN CONTENT<br>
> ONLY... get copied.<br>
><br>
> Thanks. John<br>
><br>
><br>
><br>
<br>
</div></div>- --<br>
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>
        Kevin Korb                      Phone:    <a href="tel:%28407%29%20252-6853" value="+14072526853" target="_blank">(407) 252-6853</a><br>
        Systems Administrator           Internet:<br>
        FutureQuest, Inc.               Kevin@FutureQuest.net  (work)<br>
        Orlando, Florida                <a href="mailto:kmk@sanitarium.net" target="_blank">kmk@sanitarium.net</a> (personal)<br>
        Web page:                       <a href="http://www.sanitarium.net/" target="_blank">http://www.sanitarium.net/</a><br>
        PGP public key available on web site.<br>
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.19 (GNU/Linux)<br>
<br>
iEYEARECAAYFAlEIVK4ACgkQVKC1jlbQAQer5QCg6Ix01H91OwdlF5ufuyrhdlYh<br>
lScAoL2TRkes039e0W5PQ7KPxrMPsgYB<br>
=Vl75<br>
-----END PGP SIGNATURE-----<br>
<span><font color="#888888">--<br>
Please use reply-all for most replies to avoid omitting the mailing list.<br>
To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a><br>
Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
</font></span></blockquote></div><br>
</div></div></div><br>