Feature request: save-as-user

Wayne Davison wayned at samba.org
Sat Sep 13 01:39:46 GMT 2008


On Sat, Sep 13, 2008 at 07:10:53AM +1000, Quey wrote:
> maybe something like a --chown user.group

There is a diff in the patches directory that allows you to do this.
If you apply patches/usermap.diff, you can use a command like this:

rsync -av --usermap=*:someuser --groupmap=*:somegroup /src/ /dest/

That's not nearly as succinct (due to these options having a lot more
flexibility in affecting the users and groups than a single forced
setting), so perhaps a built-in option alias would be a good idea for
the simple case (one that would map --chown=someuser:somegroup to be
the same as the above two options).

This is one of the patches that I'm leaning towards adding to 3.1.0.

..wayne..


More information about the rsync mailing list