Advertisement
fduran

rsync

Oct 30th, 2013
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. # www.fduran.com
  2. # sync (copy) local to remote server directory
  3. # take out dry-run after test
  4.  
  5. rsync --dry-run -azvrh -e 'ssh -p 2022' --exclude 'donotcopy' /var/www/ user@10.0.0.1:/var/www/
  6.  
  7. # options:
  8. a: archive, preserve metadata
  9. z: compression
  10. v: verbose
  11. r: recursive
  12. h: human
  13. --progress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement