Detection of permission changes
kmk at sanitarium.net
Thu Mar 1 18:17:27 MST 2012
-----BEGIN PGP SIGNED MESSAGE-----
First, you should almost always use -t unless you have a really good
reason to not sync timestamps otherwise future rsync runs will not
know what has changed and what hasn't.
Second, when you run with -p rsync should detect and fix any
permission differences. If the permissions are the only difference it
should fix them with a simple change to the permissions just like your
Note that -a (--archive) includes both -p and -t and a bunch of other
Finally, when in doubt, --itemize-changes.
On 03/01/12 20:05, Pavel Sanda wrote:
> is rsync supposed to detect permission change only (if other
> attributes are equal at both source and target)?
> I'm able to synchronize permissions by -p when the file changes
> (e.g. its timestamp when -t is used) but otherwise the sole
> permission change of the file (e.g. via chmod u-w file) remains
> Any hint?
> Thanks, Pavel
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