View Single Post
  #9  
Old 11-25-2009, 03:25 PM
Jack Mac Jack Mac is offline
Registered User
 
Join Date: Nov 2009
Posts: 6
This might help someone in the future, so for the record here is how I have my backup routine setup:

I have two external FW drives with several volumes each. I like to keep these volumes unmounted so that they don't interfere. SD will auto-mount and then auto-unmount destination drives [but not source drives].

I run two backups every night:
- a smart update clone of my Mac HD
- a smart update of a volume named ARCHIVES which contains files that I don't have room for on my Mac HD (mostly media, photos, keynotes, etc)

5:00a Energy Saver set to wake up iMac
5:01a iCal alarm set to mount the volume ARCHIVES using an AppleScript (this is necessary because ARCHIVES will be a source volume)
5:02a SD scheduled to start ARCHIVES backup
5:04a SD scheduled to start Mac HD clone

When the Mac HD clone is finished, it runs a shell script to unmount the ARCHIVES volume and then it sleeps the iMac.


Scripts used:

iCal alarm AppleScript:
do shell script "BDISK=`/usr/sbin/diskutil list | awk '$3==\"ARCHIVES\" {print $6}'`;/usr/sbin/diskutil mount $BDISK"

SD shell script:
#!/bin/bash

BDISK=`/usr/sbin/diskutil list | awk '$3=="ARCHIVES" {print $6}'`
/usr/sbin/diskutil unmount $BDISK > /dev/null

Here is where I got the scripts: http://www.leancrew.com/all-this/200...scripts-redux/
Reply With Quote