rsync compares all files again and again
kmk at sanitarium.net
Fri Oct 14 12:08:52 MDT 2011
-----BEGIN PGP SIGNED MESSAGE-----
Rsync doesn't compare every file over and over unless you tell it to or
you don't tell it to sync timestamps (which is part of -a). Otherwise
it compares the file size and mtime. If those are the same it assumes
the contents are the same.
The only reason you are getting a listing of all files is that you are
using -v twice. If you just use -iv you will only see files that rsync
is doing something with and why rsync is doing something with them.
On 10/14/11 14:00, Elliot Wilen wrote:
> I'm seeing the same thing as Frank, but I just assume that it's normal. Note that rsync is *comparing* every file, it still only *copies* the changed data. Adding --stats corroborates this.
> If I use -vv then, just like Frank, I get
> x/y/y1 is uptodate
> for each file that's up to date. If I use -ivv, I get
> .f x/y/y1
> for files that are up to date and similar notations for file/directory modifications.
> This does add quite a bit of time to my rsyncs. I seem to recall reading about various rsync wrapper scripts which people have devised to deal with this.
> Elliot Wilen
> Network Administrator/Postmaster
> MPR Associates, Inc.
> 2150 Shattuck Ave., Suite 800
> Berkeley, CA 94704
> Phone: (510) 849-4942
> Fax: (510) 849-0794
> On Oct 14, 2011, at 8:41 AM, Kevin Korb wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> Use --itemize-changes to find out why. In fact, --verbose is almost
>> entirely worthless without --itemize-changes.
Kevin Korb Phone: (407) 252-6853
Systems Administrator Internet:
FutureQuest, Inc. Kevin at FutureQuest.net (work)
Orlando, Florida kmk at sanitarium.net (personal)
Web page: http://www.sanitarium.net/
PGP public key available on web site.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the rsync