• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Switching Time Machine on and off
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switching Time Machine on and off


  • Subject: Re: Switching Time Machine on and off
  • From: Ron Hunsinger <email@hidden>
  • Date: Sun, 02 Sep 2012 01:14:12 -0700

The defaults mechanism is the wrong way to start/stop background processes.

Normally, you'd be better off using launchctl start/stop, as in:

sudo /bin/launchctl stop com.apple.backupd-auto
sudo /bin/launchctl start com.apple.backupd-auto
 
and maybe also stop/start com.apple.backupd-attach, but in this case Time Machine itself provides a way to do it at the command line. Use

sudo /usr/bin/tmutil disable
sudo /usr/bin/tmutil enable

to turn automatic backups off/on again. (As always, omit the "sudo" in a command executed using "do shell script ... with administrator privileges".)

On Sep 2, 2012, at 12:09 AM, Ronald Hofmann <email@hidden> wrote:

Hi all,
for test reasons I sometimes set my macs date back to Jan 1. 2012 and turn it back to today after a couple of minutes.
During this period of time I don´t want Time Machine to execute. 

Afterwards, when I turn back to today I want Time Machine to run.  
Unfortunately it doesn´t work as I expected. But what am I doing wrong?
Sometimes it looks like it is working.

I realized, when using 
defaults write /Library/Preferences/com.apple.TimeMachine AutoBackup -bool false in the terminal it´s working fine

but when using 
defaults write /Library/Preferences/com.apple.TimeMachine AutoBackup -bool false in the terminal 
I get this: Could not write domain /Library/Preferences/com.apple.TimeMachine; exiting

Any clues?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Switching Time Machine on and off (From: Ronald Hofmann <email@hidden>)

  • Prev by Date: Switching Time Machine on and off
  • Next by Date: Re: Switching Time Machine on and off
  • Previous by thread: Switching Time Machine on and off
  • Next by thread: Re: Switching Time Machine on and off
  • Index(es):
    • Date
    • Thread