Using rsync to just -resync permissions and ownership?
kmk at sanitarium.net
Tue May 14 19:26:12 MDT 2013
-----BEGIN PGP SIGNED MESSAGE-----
Yes, it will change the permissions and ownerships even if it doesn't
touch the data.
On 05/14/13 21:09, Carl Brewer wrote:
> On 15/05/2013 10:57 AM, Kevin Korb wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> OK, since your timestamps are all a mess you have 2 choices...
>> 1. Assume that all files on one system are correct and rsync
>> --archive from it to the other. Rsync will go through all the
>> data but it will only actually transfer the differences. It will
>> take time but less time than actually re-copying everything.
>> 2. Same as the above but add --size-only to rsync. This will
>> tell rsync to assume that files that are the same size on both
>> systems are actually the same. Usually files that are the same
>> size actually are the same but obviously that isn't a guarantee
>> so this can create cases of old data with new dates.
> so --archive will overwrite permissions on files that it's not
>> - From now on always copy timestamps!
> I hear you :)
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.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the rsync