Rsync and Preservation of Ownership and Permissions

perryh at perryh at
Thu Nov 24 08:11:21 UTC 2011

Martin McCormick <martin at> 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 appreciated.

Perhaps you could have rsync log in to a jail on the backup server,
where it could safely be granted root permission.

More information about the freebsd-questions mailing list