[Cialug] sync file permissions
Ed Meacham
emeacham at gmail.com
Fri Apr 30 11:03:34 CDT 2010
Hey everyone - just joined the mailing list. I'm actually who this was for.
Barry was my fourth resource in trying to find a solution for this.
Champ--
Thanks for the link, I'm going to give this a go; see if either method in
that post works for what I'm doing.
-emeacham
-----Original Message-----
From: cialug-bounces at cialug.org [mailto:cialug-bounces at cialug.org] On Behalf
Of David Champion
Sent: Friday, April 30, 2010 10:55 AM
To: cialug at cialug.org
Subject: Re: [Cialug] sync file permissions
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
_______________________________________________
Cialug mailing list
Cialug at cialug.org
http://cialug.org/mailman/listinfo/cialug
More information about the Cialug
mailing list