View Single Post
Old 10-04-2009, 02: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

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 which contains only this line of code:
defaults write /Library/Preferences/ "AutoBackup" -boolean no
...and the other is with this line:
defaults write /Library/Preferences/ "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 02:14 PM. Reason: grammer check :)
Reply With Quote