Guest User

Untitled

a guest
Dec 16th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. **Trailing slash**
  2. ```
  3. rsync src/ dest/ # -> dest/contents
  4. rsync src dest/ # -> dest/src/contents
  5. ```
  6.  
  7. **Useful options**
  8. - -r: recursive
  9. - -l: keep symlinks
  10. - -p: keep permissions
  11. - -t: keep modification times
  12. - -z: compress during transfer
  13. - -h: human-readable sizes
  14. - -P: show progress (%) and keep partial files if interrupted
  15. - -e: custom command (e.g. ssh with port)
  16.  
  17. **Sane default copy (no owner/group kept)**
  18. ```
  19. rsync -rlptzhPe 'ssh -p 12345' ./ 192.168.1.100:/path/to/mybackup/
  20. ```
Add Comment
Please, Sign In to add comment