Last active
August 29, 2015 14:14
-
-
Save yosimasu/011e02900bf39411dcfc to your computer and use it in GitHub Desktop.
Backup home directory through rsync in MAC Box
This file contains hidden or 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
#!/usr/bin/env bash | |
START=$(date +%s) | |
sudo rsync -a8ESv --progress --delete --exclude-from=.rsyncignore ~ /Volumes/DATA | |
FINISH=$(date +%s) | |
echo "total time: $(( ($FINISH-$START) / 60 )) minutes, $(( ($FINISH-$START) % 60 )) seconds" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment