Launch daemon to trigger backups via tmutil startbackup
when Time Machine automatic backups stop working.
This daemon is setup to run a backup every hour from 6:00am to 8:00pm. This works well if you are running backups on Macs in a business environment. Feel free to fork and add backup intervals as needed.
Make sure you meet these requirements before installing the daemon.
-
A Mac
-
An external hard drive
-
The external hard drive is setup as your backup drive
-
Fork and download the repository to your Mac
-
Make any interval changes (see instructions below) to the .plist file in your favorite text editor
-
On your Mac, open a new Terminal window and type the following command:
$ open ~/Library/LaunchAgents
-
Drag a copy of the .plist into the window you opened
-
Open System Preferences, select the Time Machine pane and disable "automatic backups"
-
Close all open applications and reboot your Mac
The following example would add a backup at midnight. Change the hour and minute integer according to your desired backup requirements.
<dict>
<key>Hour</key>
<integer>0</integer>
<key>Minute</key>
<integer>0</integer>
</dict>