Skip to content

Instantly share code, notes, and snippets.

@nickabal
Created June 13, 2016 07:28
Show Gist options
  • Save nickabal/56adc8390d11892e3c9729513ff7493e to your computer and use it in GitHub Desktop.
Save nickabal/56adc8390d11892e3c9729513ff7493e to your computer and use it in GitHub Desktop.
rsync single directory across two disks. rsync stops when first disk is full, then run rsync -n to see whats remaining, pipe to rsync again to finish on another disk
rsync -av /storage/ /mnt/disk1/
... of of space ...
rsync -av -n /storage/ /mnt/disk1/ | while read LINE; do rsync -av --progress "$LINE" "/mnt/disk2/$LINE"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment