Syncing moved files

Martin Gadbois martin.gadbois at colubris.com
Mon Sep 25 13:35:58 GMT 2006


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

Matt McCutchen wrote:
> On 9/22/06, Martin Gadbois <martin.gadbois at colubris.com> wrote:
>> Is there a way that rsync could, for all known files, sync paths instead
>> of file content whenever local and remote files are identical (using
>> sha1 or md5)?
> 
> The experimental --detect-renamed option provided by the patch
> "patches/detect-renamed.diff" will make rsync incrementally transfer
> each moved file using the receiver's unmoved file as the basis.  That
> will cut out almost all of the network traffic but will not reduce
> disk I/O.  I suppose you want the receiver to skip the transfer
> entirely and just move the file if --checksum is on and the checksums
> match.  The patch doesn't have this behavior yet.  Someone who
> understands the patch better than I do should add it.

I tought that the equivalent of --checksum was done each time rsync was
launched (that's why it is fast!)
If --checksum is off, we could optimize on the base name of a file:
tmp/img_1234.jpg on the source machine could be rsync'ed with
Vacation/img_1234.jpg, and moved too...

I'll install the patch and see if it helps. If not, I'll try to fix it...

Many thanks for all the answers!


- --
==============         +----------------------------------------------+
Martin Gadbois         | "Windows might take you from 0 to 60 faster, |
S/W Developer          |  but to go to 100 you need Unix."            |
Colubris Networks Inc. +----------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFF9s+9Y3/iTTCEDkRArkYAJ96NXf7XjGe8x3chU5rLTZGAPca7gCbBZ9Q
itk+OoWKnANfoRggqWdYjiY=
=R/q6
-----END PGP SIGNATURE-----


More information about the rsync mailing list