webmanoffesto

rsync script v01

Jan 25th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. rsync -avP --exclude=".*" /media/tom/1TB_ExtHD/Root_Tom_Newer/ /home/tom/Documents
  4.  
  5. # https://www.computerhope.com/unix/rsync.htm
  6. # -a, --archive: archive mode; equals -rlptgoD (no -H,-A,-X)
  7. # -r, --recursive recurse into directories
  8. # -l, --links copy symlinks as symlinks
  9. # -p, --perms preserve permissions
  10. # -t, --times preserve modification times
  11. # -g, --group preserve group
  12. # -o, --owner preserve owner (super-user only)
  13. # -D same as --devices --specials
  14.  
  15. # --progress: show progress during transfer
  16.  
  17. # -n, --dry-run perform a trial run with no changes made
  18. # -v, --verbose increase verbosity
  19. # -P, same as --partial --progress
  20. # --ignore-existing
  21. # --exclude=".*": exclude dot hidden files
  22.  
  23. # Understanding Discrepancy in Bytes Sent vs Bytes Received
  24. # https://sourceforge.net/p/luckybackup/discussion/873564/thread/90910b63/
Add Comment
Please, Sign In to add comment