Using rsync to just -resync permissions and ownership?
Carl Brewer
carl at bl.echidna.id.au
Tue May 14 19:09:18 MDT 2013
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 replacing?
> - From now on always copy timestamps!
I hear you :)
More information about the rsync
mailing list