-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Correct. rsync doesn't pay attention to ctime as it can't set ctime to arbitrary values.
On 10/14/11 14:37, Elliot Wilen wrote: > Thanks, somehow I'd convinced myself that when I did a -vv, I could see > larger files taking longer to "compare" than smaller files. But this was > probably when actual syncs of those files were going on. Retest shows you're > right, of course. > > Frank's idea seems to be valid, though: why not compare the mtimes of > directories and skip comparing the mtimes & sizes of files in those > directories which haven't changed? > > Note 1: It looks like you'd still have to compare subdirs even if their > parent dirs don't have a change in mtime. > > Note 2: Frank mentioned ctime but I think mtime is what you need to look at. > > Elliot Wilen > Network Administrator/Postmaster > MPR Associates, Inc. > 2150 Shattuck Ave., Suite 800 > Berkeley, CA 94704 > Phone: (510) 849-4942 > Fax: (510) 849-0794 > > www.mprinc.com > > On Oct 14, 2011, at 11:08 AM, Kevin Korb wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> 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. - -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. ke...@futurequest.net (work) Orlando, Florida k...@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/ iEYEARECAAYFAk6YgfMACgkQVKC1jlbQAQfaUACgxzZMdiToKKk0XlR+/JCaTt+E 50kAoOIsfppYL1ZFa19B+t/49uxGFlrp =A7mF -----END PGP SIGNATURE----- -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html