tips.paddyonline.net

If you need tips & tricks, here they are...

Joomla! AddThis

Share

Rsync

Article Index

Rsync and Basic options

rsync -narvchtSR --delete-during --numeric-ids --exclude=.nfs\* --exclude=.snap --rsh="ssh -l root" :<source_directory> <destination_directory>

  • R = use relative path names
  • z = compress file data during the transfer
  • r = recurse into directories (need to be specified by itself)
  • a = archive mode; equals -rlptgoD (no -H,-A,-X)
    • l = copy symlinks as symlinks
    • p = preserve permissions
    • g = preserve group
    • o = preserve owner (super-user only)
  • v = increase verbosity
  • t = preserve modification times
  • c = skip based on checksum, not mod-time & size
  • h = output numbers in a human-readable format
  • n = perform a trial run with no changes made
  • S = handle sparse files efficiently
  • delete-during = receiver deletes during xfer, not before
  • numeric-ids = don't map uid/gid values by user/group name
  • exclude = exclude files matching PATTERN

 

Add comment

Security code
Refresh

Please consider supporting our efforts.


We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.