hello,<br><br>a patch could help you in the case of a move or rename of a file :<br><br>Patch : --detect-renamed <br>(1) match in size & modify-time (plus the basename, if possible)<br>(2) or match in size & checksum (when --checksum was also specified) and use each match as an alternate basis file to speed up the transfer.<br>
<br><a href="http://gitweb.samba.org/?p=rsync-patches.git;a=blob;f=detect-renamed.diff;h=c3e6e846eab437e56e25e2c334e292996ee84345;hb=master">http://gitweb.samba.org/?p=rsync-patches.git;a=blob;f=detect-renamed.diff;h=c3e6e846eab437e56e25e2c334e292996ee84345;hb=master</a><br>
<br>Patch options : --detect-renamed-lax and --detect-moved<br><a href="http://gitweb.samba.org/?p=rsync-patches.git;a=blob;f=detect-renamed-lax.diff;h=1ff593c8f97a97e8970d43ff5a62dfad5abddd75;hb=master">http://gitweb.samba.org/?p=rsync-patches.git;a=blob;f=detect-renamed-lax.diff;h=1ff593c8f97a97e8970d43ff5a62dfad5abddd75;hb=master</a><br>
<br><br clear="all">Benjamin ANDRE<br><br>
<br><br><div class="gmail_quote">2012/7/5 Matthias Schniedermeyer <span dir="ltr"><<a href="mailto:ms@citd.de" target="_blank">ms@citd.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 05.07.2012 09:26, Yan Seiner wrote:<br>
> Is it possible to tell rsync *not* to use file names, date stamps, etc and<br>
> only use the checksum for deciding if a file is the same?<br>
><br>
> the remote machine "normalizes" a set of file names to remove all<br>
> punctuation marks and forces all file names to lower case.  The files<br>
> themselves are unchanged.<br>
><br>
> --checksum looks promising but it does not say anything about file names:<br>
><br>
> -c, --checksum              Skip based on checksum, not mod-time & size<br>
><br>
> Can this be done?<br>
<br>
</div>A workaround comes to mind.<br>
<br>
MD5/SHA1 (whatever) the files and hardlink them under that name into a<br>
(hidden) directory.<br>
<br>
Then when you rsync with "-H" those hardlinks (All files must be below<br>
the start-directory) make sure that rsync only has to delete/create<br>
hardlinks and not copy them again after it had copied it the first time.<br>
<br>
I use a similar method for a bunch of big files i have, i hardlink them<br>
into a hidden directory and when i move the files around rsync only<br>
deletes/creates hardlinks. When i move the files onto other storage i<br>
only need to do "find .z -type f -links 1" to find out which files only<br>
have 1 link. Which means all other hardlinks are gone and i can remove<br>
that file. ("find .z -type f -links 1 -delete")<br>
<br>
<br>
<br>
<br>
<br>
Bis denn<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Real Programmers consider "what you see is what you get" to be just as<br>
bad a concept in Text Editors as it is in women. No, the Real Programmer<br>
wants a "you asked for it, you got it" text editor -- complicated,<br>
cryptic, powerful, unforgiving, dangerous.<br>
</font></span><div class="HOEnZb"><div class="h5"><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/%7Eesr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
</div></div></blockquote></div><br>