SHARE
TWEET

Untitled

a guest Jun 25th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -o, --owner
  2.           This  option  causes  rsync to set the owner of the destination file to be the same as the source file,
  3.           but only if the receiving rsync is being run as the super-user (see also the --super  and  --fake-super
  4.           options).   Without this option, the owner of new and/or transferred files are set to the invoking user
  5.           on the receiving side.
  6.  
  7.           The preservation of ownership will associate matching names by default, but may fall back to using  the
  8.           ID number in some circumstances (see also the --numeric-ids option for a full discussion).
  9.  
  10.  
  11.    --numeric-ids
  12.           With  this option rsync will transfer numeric group and user IDs rather than using user and group names
  13.           and mapping them at both ends.
  14.  
  15.           By default rsync will use the username and groupname to determine what ownership  to  give  files.  The
  16.           special  uid  0 and the special group 0 are never mapped via user/group names even if the --numeric-ids
  17.           option is not specified.
  18.  
  19.           If a user or group has no name on the source system or it has no match on the destination system,  then
  20.           the  numeric ID from the source system is used instead.  See also the comments on the "use chroot" set‐
  21.           ting in the rsyncd.conf manpage for information on how the chroot setting affects  rsync’s  ability  to
  22.           look up the names of the users and groups and what you can do about it.
  23.      
  24. sudo rsync -av --chown=vmail:vmail --force --delete --progress user@my_backup_server:/home/user/backups/vmail/ /vmail/
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top