Skip to content

Instantly share code, notes, and snippets.

@nilswindisch
Last active September 27, 2015 09:07
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 nilswindisch/1245295 to your computer and use it in GitHub Desktop.
Save nilswindisch/1245295 to your computer and use it in GitHub Desktop.
Start Time Machine backup when home
#!/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