Rsync

  • R flags

R flags

# sync the content of source to target
rsync -hvrPt /path/to/source /path/to/target 
#flags
#    -h: human readable numbers
#    -v: verbose
#    -r: recurse into directories
#    -P: --partial (keep partially transferred files) +
#            --progress (show progress during transfer)
#    -t: preserve modification times
#    --update: only newer
# sync the content of source to target/source
rsync /path/to/source /path/to/target/