View Single Post
  #4  
Old 10-04-2009, 01:13 PM
MacCetera MacCetera is offline
Registered User
 
Join Date: Aug 2009
Location: Hartland, WI
Posts: 19
Scripts to stop and start time machine backups

Quote:
Originally Posted by RobLewis View Post
I don't know if this is even possible, but it seems like it would be good if SD could temporarily suspend Time Machine backups while it was imaging a drive. I know you already suspend Spotlight indexing; this is sort of the same idea.
I clone my 1TB TM drive nightly to another 1TB drive. I've got two shell scripts that I set in SD to run as pre and post backup scripts:

The first I named tm_disable.sh which contains only this line of code:
Code:
defaults write /Library/Preferences/com.apple.TimeMachine "AutoBackup" -boolean no
...and the other is tm_enable.sh with this line:
Code:
defaults write /Library/Preferences/com.apple.TimeMachine "AutoBackup" -boolean yes
It works with 10.5 and 10.6... I put the scripts in a directory on my source TM volume - and they get backed up too

-- Marc

Last edited by MacCetera; 10-04-2009 at 01:14 PM. Reason: grammer check :)
Reply With Quote