Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Thrash911

macrumors 6502
Original poster
Sep 14, 2006
297
4
Jutland, Denmark
Hey folks,

Does anybody know how I can turn Time Machine OFF and ON, using the Terminal? The reason I'm asking is because I have to do it in an AppleScript..
 
I know that you can initiate backups using Terminal but I don't believe you can turn the service on and off...
 
Google is your friend.

Apparently...

Turn on:
defaults write /Library/Preferences/com.apple.TimeMachine AutoBackup -boolean YES

Turn off:
defaults write /Library/Preferences/com.apple.TimeMachine AutoBackup -boolean NO

If that doesn't work try "-bool" instead of "-boolean" (different places say different things).
 
Google is your friend.

Apparently...

Turn on:
defaults write /Library/Preferences/com.apple.TimeMachine AutoBackup -boolean YES

Turn off:
defaults write /Library/Preferences/com.apple.TimeMachine AutoBackup -boolean NO

If that doesn't work try "-bool" instead of "-boolean" (different places say different things).

Ah, forgot about the AutoBackup pref...

Sorry OP, wasn't thinking straight apparently.:)
 
Wohow.. Very nice! It works with both -bool and -boolean..

I did google it (I always do), but it seems I'm not as good a friend with google, as you are.. :rolleyes:

Thanks a million!

EDIT: @ mathcolo: No worries! :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.