PDA

View Full Version : How to automatically shut-down VMWare before SD backup?


Sophie
06-09-2009, 12:35 AM
Is there a simple way to do this? My VMWare is already configured to save state before quitting. All I want is a way for SuperDuper to ask VMWare to quit (and wait for the quit) before it runs its backup.

Separately, I am getting an "must be unlocked" error when my scheduled SD job tries to run. If I run it manually I have to type in credentials. How do I set up the scheduled job to not require manual intervention?

Thanks!

dnanian
06-09-2009, 05:42 AM
Well, you could try to use a before-copy shell script to do it. You'd want to run an Applescript that would send a "quit" event to VMWare. The script would look something like


#!/bin/sh
osascript /path/to/the/applescript

Where the AppleScript was something like:

tell application "VMWare" to quit

sjk
06-09-2009, 02:54 PM
Or embed the AppleScript directly in the shell script:

#!/bin/sh

osascript -e 'tell application "VMWare" to quit'

unless there's some reason why that won't work.

dnanian
06-09-2009, 03:12 PM
Nope, that should work as well, but I was replying on my phone and couldn't remember the "-e". :)