Please enter your username below and press the send button.A password reset link will be sent to you.
If you are unable to access the email address originally associated with your Delicious account, we recommend creating a new account.
Recently Saved by anselmdk on July 17, 2012
First saved by nschum on September 14, 2011
Rotating Time Machine backups has never been easier as of 10.7. Apple included in Lion a command-line interface for Time Machine which makes it completely scriptable. For the complete details on the command-line interface take a look at the man page for
I use two Time Machine backups (see my backup strategy below for my complete backup solution) one at home and one at work. Using MarcoPolo you can set triggers and actions to automatically switch your Time Machine destination.
At home, and at work, I have 10.7 Server setup running the Time Machine service. Using MarcoPolo my laptop can determine its location, work or home, and set the IP address for my server appropriately. The following are the details on how to set this up for a Time Machine destination of an AFP share point. With small changes, this will also work for a Time Machine destination of an external hard drive.
Note: To alter these instructions to use a local external hard drive, change the following
commands to this format:
tmutil setdestination mount_point
where mount_point is the path to your external hard drive.
Time Machine Setup
First we need to create two scripts. I have stored mine in /usr/local/bin. I used the
editor in Terminal to create the scripts; you could also do this with BBEdit or TextWrangler if you're more comfortable with those editors. The two scripts will use the
command to switch the destination. To create your first script enter this command into Terminal:
sudo nano /usr/local/bin/switchtimemachinehome.sh
Paste the following into the nano editor:
#!/bin/bash #This will change your Time Machine setting the backup to your home server sleep 5 tmutil setdestination afp://username:firstname.lastname@example.org/Backups sleep 5 tmutil startbackup
The important line here is the
command which is new as of 10.