Re: Rsync and Preservation of Ownership and Permissions

2011-11-24 Thread Martin McCormick
Michael Sierchio writes: > Does the same user exist on the remote system, with the same uid, etc.? Yes. > If you're using rsync with ssh as the transport, and connecting to the > remote machine as the backups user, that's who will own the files on > its local filesystem... I thought rsync had so

Re: Rsync and Preservation of Ownership and Permissions

2011-11-24 Thread perryh
Martin McCormick wrote: > Rsync is a great utility, but is there a way to preserve > ownership and permissions if rsync remotely logs in to a backup > server as a normal user? AFAIK, no, because only root may change the ownership of a file -- see chown(2). > Any ideas are greatly ap

Re: Rsync and Preservation of Ownership and Permissions

2011-11-23 Thread Michael Sierchio
On Wed, Nov 23, 2011 at 9:01 PM, Martin McCormick wrote: >        Rsync is a great utility, but is there a way to preserve > ownership and permissions if rsync remotely logs in to a backup > server as a normal user? Does the same user exist on the remote system, with the same uid, etc.? If you'r

Rsync and Preservation of Ownership and Permissions

2011-11-23 Thread Martin McCormick
Rsync is a great utility, but is there a way to preserve ownership and permissions if rsync remotely logs in to a backup server as a normal user? The recovery process is run by root but copies all the files from the backup server as a normal user and uses its root capabilities to r