Guest User

Untitled

a guest
Mar 6th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. # These commands are to be run in different tmux panes to quickly copy the
  2. # contents of one hard drive to another. `rsync` is used for it's robustness,
  3. # interruptibility, and efficiency in incremental updates.
  4. #
  5. # After the initial clone, the same `rsync` command can be run to copy just the
  6. # new/changed files from source to target.
  7.  
  8. # tmux pane 1
  9. rsync --partial -a /Volumes/ushuaia/ /Volumes/amsterdam/
  10.  
  11. # tmux pane 2
  12. # use `watch` to record how much space is taken (via `df`)
  13. watch -n 60 "bash monitor.sh | tee -a transfer-times.txt"
  14.  
  15. # tmux pane 3
  16. # live view of most recent log entries
  17. watch -n 60 "tail transfer-times.txt"
Add Comment
Please, Sign In to add comment