On Thu, 4 Jun 2020 09:35:46 -0700 Wayne Davison <wa...@opencoder.net> 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 -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html