Re: How to manage root<-->root rsync keeping permissions?

2021-08-03 Thread raf via rsync
On Tue, Aug 03, 2021 at 10:51:34AM +, Andy Smith via rsync wrote: > Hi Chris, > > On Tue, Aug 03, 2021 at 09:48:37AM +0100, Chris Green via rsync wrote: > > But how do you handle the other end to restore the root ownership etc.? > > The script has to do something like:- > > > > rsync

Re: How to manage root<-->root rsync keeping permissions?

2021-08-03 Thread Chris Green via rsync
Andy Smith via rsync wrote: > Hi Chris, > > On Tue, Aug 03, 2021 at 11:48:31AM +0100, Chris Green via rsync wrote: > > If I used the --super option (in a command like the one above) and > > chris can run rsync as root on the remote end (via options in the > > sudoers file) will this do what I

Re: How to manage root<-->root rsync keeping permissions?

2021-08-03 Thread Chris Green via rsync
Paul Slootman via rsync wrote: > On Tue 03 Aug 2021, Chris Green via rsync wrote: > > > Is there a way to copy (for example) the /etc hierarchy from one > > system to another preserving root ownership of files and without > > revealing root passwords all over the place? > > Best way is to run

Re: How to manage root<-->root rsync keeping permissions?

2021-08-03 Thread Chris Green via rsync
Andy Smith via rsync wrote: > Hi Chris, > > On Tue, Aug 03, 2021 at 09:48:37AM +0100, Chris Green via rsync wrote: > > But how do you handle the other end to restore the root ownership etc.? > > The script has to do something like:- > > > > rsync -a /etc/ chris@remote:backups/etc/ > > > >

Re: How to manage root<-->root rsync keeping permissions?

2021-08-03 Thread Paul Slootman via rsync
On Tue 03 Aug 2021, Chris Green via rsync wrote: > Is there a way to copy (for example) the /etc hierarchy from one > system to another preserving root ownership of files and without > revealing root passwords all over the place? Best way is to run an rsync daemon on the source system, and be

Re: How to manage root<-->root rsync keeping permissions?

2021-08-03 Thread Andy Smith via rsync
Hi Chris, On Tue, Aug 03, 2021 at 11:48:31AM +0100, Chris Green via rsync wrote: > If I used the --super option (in a command like the one above) and > chris can run rsync as root on the remote end (via options in the > sudoers file) will this do what I want? I guess I can go away and try > it!

Re: How to manage root<-->root rsync keeping permissions?

2021-08-03 Thread Andy Smith via rsync
Hi Chris, On Tue, Aug 03, 2021 at 09:48:37AM +0100, Chris Green via rsync wrote: > But how do you handle the other end to restore the root ownership etc.? > The script has to do something like:- > > rsync -a /etc/ chris@remote:backups/etc/ > > So at the remote end it only has chris'

Re: How to manage root<-->root rsync keeping permissions?

2021-08-03 Thread Chris Green via rsync
Chris Green via rsync wrote: > Is there a way to copy (for example) the /etc hierarchy from one > system to another preserving root ownership of files and without > revealing root passwords all over the place? > > This is actually from and to Debian based systems (from Raspberry Pi > to Xubuntu)

How to manage root<-->root rsync keeping permissions?

2021-08-03 Thread Chris Green via rsync
Is there a way to copy (for example) the /etc hierarchy from one system to another preserving root ownership of files and without revealing root passwords all over the place? This is actually from and to Debian based systems (from Raspberry Pi to Xubuntu) so there's no actual root user login