View Single Post
  #12  
Old 03-04-2011, 12:30 AM
mmurray mmurray is offline
Registered User
 
Join Date: Jun 2006
Posts: 25
I run the following shell script at the end of a clone:


#! /bin/tcsh -f
#

set target="$4"
set dsfile="$target/DateStamp.txt"
echo "Latest clone was done on `date`" > "${dsfile}"
echo "Latest clone was done on $target on `date`" >> "/Users/xxxxxxx/Documents/CloneLog.txt"

I clone regularly to two different hard disks. One at home and one at work. The idea of this script is that it rights a file at the top level of the clone with the date it was cloned and it keeps a list on my startup disk of all the clones done. The list on my startup disk is saved with DropBox and, of course, on the clones.

So, in theory, if I can't start up I boot from a clone. Go on the web and look at CloneLog.txt on www.dropbox.com and then I know if I have to restore from the work clone or the home clone and how old they are. In principle DropBox or TimeMachine will make up the stuff since the clone.

Luckily I haven't had to test this setup. Just leaning down to touch the wooden floor ...

Michael

PS: My knowledge of shell scripts is definitely in the "a little knowledge is a dangerous thing" range so use at your own risk.
Reply With Quote