Created
June 13, 2015 03:01
-
-
Save ozzieperez/66facce31e72f1756f4d to your computer and use it in GitHub Desktop.
Sync 2 drives or directories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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