You is probably running rsync like this:
Rsync-a dir/remote:/dir/
the -a option according to the Documentation is equivalent to: -rlptgod
-a, --archive archive mode; equals -rlptgoD (no -h,-a,-x)
you probably want to remove The -o and -g options:
-o, --owner preserve owner (super-user only) -g, --group preserve group
So instead your rsync command should look something like this:
RSYNC-RLPTD dir/remote:/dir/
Or as @glglgl points out:
Rsync-a--no-o--no-g dir/remote:/dir/
The remaining options in use is:
-r, --recursive recurse into directories -l, --links copy symlinks as symlinks -p, --perms preserve permissions -t, --times preserve modification times -D same as --devices --specials --devices preserve device files (super-user only) --specials preserve special files
Error using rsync: Rsync:chgrp "XXXX" failed:operation not permitted