Skip to content

Instantly share code, notes, and snippets.

@ozzieperez
Created June 13, 2015 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozzieperez/66facce31e72f1756f4d to your computer and use it in GitHub Desktop.
Save ozzieperez/66facce31e72f1756f4d to your computer and use it in GitHub Desktop.
Sync 2 drives or directories
# Syncs a destination with a source.
# -a is basically "backup mode"
# -v is verbose, which shows each file that gets copied
# --delete will delete a file in the destination if it is not in the source
sudo rsync -av --delete /Volumes/MyDrive1/ /Volumes/MyDrive2/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment