Preserving destination group and owner

Wayne Davison wayne at
Thu Jun 4 16:35:46 UTC 2020

On Thu, Jun 4, 2020 at 3:07 AM Alberto Cabello Sánchez wrote:

> I'm trying to get an rsync updating some files without changing their
> owner, groups or permissions. I've read man pages etc. stating I need to
> use the "--no-o", "--no-g", "--no-p" flags

You'll need to also specify --inplace in order for rsync to just use the
existing files instead of creating a new one and moving it into place. Any
new files will still be owned by the copying user (root in your case).  If
all the files are going to end up being owned by one particular user &
group, you could instead include the -o & -g options along with the
--chown=user:group option and the receiving side will create/chown all the
files in the transfer on the receiving side to that user and group (without
needing to use --inplace).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the rsync mailing list