[Cialug] sync file permissions
David Champion
dave at dchamp.net
Fri Apr 30 10:55:03 CDT 2010
If the files are the same, can't you just rsync and preserve permissions?
If the files are different... that's another story.
Here's a thread where someone was trying to do the same thing, has a shell
script to do what you want once they decided rsync won't do it:
http://fixunix.com/unix/88355-rsync-permissions-only.html
-dc
Barry wrote:
-------------------------
does any body know of a way to sync just file permissions between two
directories?
I know there's cp -a and rsync -a , but I don't want to copy contents,
just permissions
chmod has a --reference=file parameter; it seems like that could be
leveraged with find -exec or xargs
anybody done this?
-barry
More information about the Cialug
mailing list