Detection of permission changes

Kevin Korb kmk at sanitarium.net
Thu Mar 1 18:17:27 MST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
chmod.

Note that -a (--archive) includes both -p and -t and a bunch of other
things.

Finally, when in doubt, --itemize-changes.

On 03/01/12 20:05, Pavel Sanda wrote:
> Hi,
> 
> 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
> unnoticed.
> 
> 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/

iEYEARECAAYFAk9QH6YACgkQVKC1jlbQAQe2OwCeKqqR/iMwIeJO1GeiqmTCV2fr
umcAoLYhbKDjKV3kfY3NMF6MEvlS3bO+
=dDzv
-----END PGP SIGNATURE-----


More information about the rsync mailing list