We use Retrospect to backup our systems at night. Unfortunately, Retrospect does not run if the systems are asleep in OS X, so our systems are set to “never” sleep. I would like to set up a script to put the system to sleep once Retrospect client confirms that the backup was successful (via an alert box).
I use iBeeZz with Retro and it works great! It can wake and/or sleep your make on a schedule, as well as launch documents, applications and scripts on wake.
The Mac OS 9 client has that option, but I can’t find it in the OS X client and the documentation vaguely suggests that that option doesn’t exist. Hence the workaround…
I’ve been using a program called WakeUp (http://www.coriolis.ch) which wakes the machines from sleep mode over the network. I run this program and the following script on the machine with Retrospect server. I use iCal to trigger the event 5 minutes before backup.
tell application "WakeUp"
activate
end tell
tell application "System Events"
tell process "WakeUp"
delay 1
tell menu bar 1
tell menu bar item "Edit"
tell menu "Edit"
click menu item "Select All"
delay 1
keystroke return
delay 5
keystroke return
end tell
end tell
end tell
end tell
end tell
tell application "WakeUp"
quit
end tell