By the way, the application of this is for the following:<br><br>If you have 2 huge source trees with only a few differences:<br>old/<br>new/<br><br>then I want to create 2 new minimal source trees, that contain only the differences:<br>
old_archive/<br>new_archive/<br><br>This way, I can send someone <br>old_archive/ and new_archive/<br>that contain only the few differences, instead of sending the huge source-trees <br>old/ and new/<br><br>:)<br><br>Regards, John<br>
<br><br><div class="gmail_quote">On Wed, Jan 30, 2013 at 12:15 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">
<div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div>That sounds more like a job for --backup and --backup-dir instead of<br>
- --checksum and --compare-dest but I have not tried to do this before.<br>
<div class="im"><br>
On 01/29/13 18:13, John Reye wrote:<br>
> 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<br>
> difference between folder new and old (or existance-only in folder<br>
> new)... from folder new to a third folder new_archive... ??? along<br>
> the lines of:<br>
><br>
><br>
> rsync -av  --checksum --delete --progress --stats<br>
> --compare-dest=../old new/ new_archive<br>
><br>
> (I've been trying around with --ignore-times and --size-only... but<br>
> that didn't lead anywhere...)<br>
><br>
> Can this actually be done with rsync?<br>
><br>
> Thanks, John<br>
><br>
><br>
> On Wed, Jan 30, 2013 at 12:01 AM, Kevin Korb <<a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a><br>
</div><div><div class="h5">> <mailto:<a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a>>> wrote:<br>
><br>
> With -a you are telling rsync to copy the timestamp difference.<br>
> It can't set a timestamp on nothing.<br>
><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<br>
>> --delete --progress --stats --compare-dest=../old new/<br>
>> new_archive<br>
><br>
>> rsync -av --checksum --delete  --progress --stats<br>
> --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<br>
>> timestamp). 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><div class="im">> -- Please use reply-all for most replies to avoid omitting the<br>
> mailing list. To unsubscribe or change options:<br>
> <a href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a> Before posting,<br>
> 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>
><br>
><br>
><br>
><br>
><br>
<br>
</div><div class="im">- --<br>
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>
        Kevin Korb                      Phone:    <a href="tel:%28407%29%20252-6853" value="+14072526853">(407) 252-6853</a><br>
        Systems Administrator           Internet:<br>
        FutureQuest, Inc.               Kevin@FutureQuest.net  (work)<br>
        Orlando, Florida                <a href="mailto:kmk@sanitarium.net">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>
</div>iEYEARECAAYFAlEIWAgACgkQVKC1jlbQAQeI8wCfffDw1Ay3lxBjvKuSdltPDBiT<br>
fG8AoMjDiu7FpM4WPHnVnGOIZ6mKkiYe<br>
=4Eug<br>
<div class="HOEnZb"><div class="h5">-----END PGP SIGNATURE-----<br>
--<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>
</div></div></blockquote></div><br>