I used the rsync to copy files from a remote location. After the copy, on the destination server, the files has different ownership. How can I use the rsync to update the ownership of the files? (preserve the origin) thx, István They have different UID and GID (different user).
-o, --owner preserve owner (super-user only) -g, --group preserve group --devices preserve device files (super-user only) --specials preserve special files
You can also use
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X) --no-OPTION turn off an implied OPTION (e.g. --no-D)
since that is for "archive" and include the
-g. Mind the "super-user only".
For more info type man rsync on command line or click the link.