"whole file" default behavior question

Wayne Davison wayned at samba.org
Wed May 28 11:08:53 EST 2003

On Tue, May 27, 2003 at 08:06:15PM -0500, ecantu at satx.rr.com wrote:
> Now the unexpected (for me anyway) happens: entire file is sent across.

Check the stats (i.e. use -v) and you should see that the whole file was
NOT sent -- just enough data to check the checksums and recreate the
file from the data that is already on the destination system.  The
reason that this optimized transfer occurs is because the file's size
and date are not identical, so rsync assumes that the file is different.
If you don't want to preserve the file times (using the -t option), you
might try using the -c option instead -- it's slow, though, but it does
only update files that are really different.


More information about the rsync mailing list