Last active
September 27, 2015 09:07
-
-
Save nilswindisch/1245295 to your computer and use it in GitHub Desktop.
Start Time Machine backup when home
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
#!/bin/bash | |
sudo tmutil enable | |
sleep 2 | |
sudo tmutil setdestination /Volumes/data/ | |
growlnotify -a 'Time Machine' -m 'Time Machine enabled and /Volume/data/ mounted' | |
sleep 20 | |
tmutil startbackup | |
growlnotify -a 'Time Machine' -m 'Starting Time Machine Backup' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment