Preserving destination group and owner

Alberto Cabello Sánchez alberto at
Fri Jun 5 06:51:28 UTC 2020

On Thu, 4 Jun 2020 09:35:46 -0700
Wayne Davison <wayne at> wrote:

> 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).

Thank you very much, I already guessed new files would have some kind of
default owner, group and permissions.

> 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).

That will not be usually the case, but it can be useful in some scenarios.

Thanks again,

Alberto Cabello Sánchez
Servicio de Informática
Universidad de Extremadura

More information about the rsync mailing list