Turn Time Machine on & off via Terminal?

Discussion in 'macOS' started by Thrash911, Oct 20, 2008.

  1. Thrash911 macrumors 6502

    Thrash911

    Joined:
    Sep 14, 2006
    Location:
    Randers, DK
    #1
    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..
     
  2. mathcolo macrumors 6502a

    Joined:
    Sep 14, 2008
    Location:
    Massachusetts
    #2
    I know that you can initiate backups using Terminal but I don't believe you can turn the service on and off...
     
  3. Thrash911 thread starter macrumors 6502

    Thrash911

    Joined:
    Sep 14, 2006
    Location:
    Randers, DK
    #3
    I thought anything was possible in OS X.. :D Oh well, I'll just have to live with that. Thanks!
     
  4. edesignuk Moderator emeritus

    edesignuk

    Joined:
    Mar 25, 2002
    Location:
    London, England
    #4
    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).
     
  5. mathcolo macrumors 6502a

    Joined:
    Sep 14, 2008
    Location:
    Massachusetts
    #5
    Ah, forgot about the AutoBackup pref...

    Sorry OP, wasn't thinking straight apparently.:)
     
  6. Thrash911 thread starter macrumors 6502

    Thrash911

    Joined:
    Sep 14, 2006
    Location:
    Randers, DK
    #6
    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! :)
     
  7. edesignuk Moderator emeritus

    edesignuk

    Joined:
    Mar 25, 2002
    Location:
    London, England
    #7
    That's OK, it did take some digging...all of 5 minutes :p

    Glad it works anyway :)
     

Share This Page