Re: Using rsync to just -resync permissions and ownership?

2013-05-19 Thread Wayne Davison
On Tue, May 14, 2013 at 6:09 PM, Carl Brewer wrote: > so --archive will overwrite permissions on files that it's not replacing? > Yes, but you need to be very sure that it doesn't overwrite changed files that you wanted to keep. For safety, you can use --backup along with --backup-dir and check

Re: Using rsync to just -resync permissions and ownership?

2013-05-14 Thread Carl Brewer
On 15/05/2013 11:26 AM, Kevin Korb wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes, it will change the permissions and ownerships even if it doesn't touch the data. Thank you Carl -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change o

Re: Using rsync to just -resync permissions and ownership?

2013-05-14 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes, it will change the permissions and ownerships even if it doesn't touch the data. On 05/14/13 21:09, Carl Brewer wrote: > On 15/05/2013 10:57 AM, Kevin Korb wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> >> OK, since your timestamps a

Re: Using rsync to just -resync permissions and ownership?

2013-05-14 Thread Carl Brewer
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 onl

Re: Using rsync to just -resync permissions and ownership?

2013-05-14 Thread Kevin Korb
-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 wil

Re: Using rsync to just -resync permissions and ownership?

2013-05-14 Thread Carl Brewer
On 15/05/2013 10:38 AM, Kevin Korb wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If the timestamps are the same then rsync with -a should just fix the ownerships and permissions. That doesn't seem to deal with older files though, which is most of them, at least as far as I can tell. M

Re: Using rsync to just -resync permissions and ownership?

2013-05-14 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If the timestamps are the same then rsync with -a should just fix the ownerships and permissions. If the timestamps are not the same then you could do it with getfacl and setfacl as they can use a text file as an intermediary however your next questio

Using rsync to just -resync permissions and ownership?

2013-05-14 Thread Carl Brewer
G'day, I'm in the process of fixing a long broken rsync backup on a couple of servers. The old system rsync'd a Linux (CentOS 5) server onto a Opensolaris/OpenIndiana server but didn't worry about ownership or permissions, across an expensive WAN link. All the ownerships and permissions ar