#1
|
|||
|
|||
How do I trigger one SD unattended backup from another?
I just got an external 1tb drive that I want to use to back up two separate internal drives. The problem is I want to do this unattended but I can't seem to figure out a way to run two jobs sequentially.
My desired workflow would be to have an automator action that triggers the first backup. I'd turn off my monitors and head home for the night while SD! does it's magic. When the first backup is complete, it would trigger the second backup. When the second is done, it would put the computer to sleep. Now, I had a similar setup running just fine with a single SD! backup. My automator script used applescript to launch the SD! job and it would put the computer to sleep when it is done. However, now that I've introduced the second job into the mix, I need a way to trigger the second job once the first is done. Scheduling isn't a viable option since I don't know when the first job will be done. And Automator doesn't wait for the first job to complete before moving on with it's workflow once an unattended job starts running. Can anyone suggest a way to do this? Details rather than generalities would be most appreciated, but, in truth, I'll take what I can get at this point. Many thanks, Steve |
#2
|
||||
|
||||
You don't have to know when the first job is done to do it with scheduling. Just set them one minute apart and we'll do the rest.
__________________
--Dave Nanian |
#3
|
|||
|
|||
Quote:
Can I fire a unattended job with a shell script, maybe? Thanks, Steve |
#4
|
||||
|
||||
You can review the "One Touch Button" FAQ entry and use a similar technique, sure.
__________________
--Dave Nanian |
#5
|
|||
|
|||
Okay that worked. For posterity, here's what I did:
I have two internal drives, Sam & Max. I want to back them up on demand to an external drive ("MyBook") via an Automator Script. I want to leave this script running unattended after I leave for the night and have my computer sleep as soon as SuperDuper is done. 1) I create the SuperDuper jobs I want to run. I make sure the padlock icon is unlocked to allow the job to run unattended for both jobs. 2) I create an automator job that triggers the "Sam" job first. In a "Run AppleScript" workflow item: Code:
tell application "SuperDuper!" run using settings "~/Library/Application Support/SuperDuper!/Saved Settings/Backup Sam to MyBook.sdsp" without user interaction end tell 3) I create a second automator script that triggers the "Max" job. Like the "Sam" job, create a "Run Applescript" workflow: Code:
tell application "SuperDuper!" run using settings "/Users/ixnayus/Library/Application Support/SuperDuper!/Saved Settings/Backup Max to MyBook.sdsp" without user interaction end tell 4) Open TextEdit and write "open " and then drag "SuperDuper Max to MyBook.app" onto it. You'll get a long command: Code:
open /Users/ixnayus/Library/Application\ Support/SuperDuper\!/Saved\ Settings/SuperDuper\ Max\ to\ MyBook.app 5) Here's an important step. You need to set permissions on the shell script so SuperDuper can open it without complaining. From the terminal: Code:
chmod 777 ~/Library/Application\ Support/SuperDuper\!/Saved\ Settings/Backup\ Max\ to\ MyBook.sh" 7) Open the "Max" job in SuperDuper. Click "Options" then "General" and select "Sleep Computer" under "On successful completion". Save the job. You now have an automator script that fires off a chain of events resulting in your backed up data and a sleepy computer. Automator Backup Sam -> SuperDuper Backup Sam -> Shell - Open Automator Backup Max -> SuperDuper Backup Max -> Sleep computer TIP: if you have Growl installed (http://growl.info/), you'll be greeted with a quick message when you start your computer up on whether the jobs completed successfully or not. I hope this helps. Thanks, Dave, for pointing me in the right direction. |
#6
|
||||
|
||||
The only problem here is that you've run two jobs but only one can run at a time - and "run using settings" does not block. If you set things up as in the FAQ, and run the little program rather than directly running the settings, you'll leverage our "schedule driver", which knows how to queue the jobs, mount and unmount drives, etc.
__________________
--Dave Nanian |
#7
|
|||
|
|||
Quote:
To do as the FAQ instructs, you'd replace my step #3 with the instructions in the faq... http://tinyurl.com/ljv8pz ... and point the shell script to the resulting app from the FAQ instead of the automator "Max" job in my example step #4. |
Tags |
applescript, automator, scripting, unattended |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Server drive won't mount after backup | rhennosy | General | 1 | 11-09-2007 03:49 PM |
Backup failure on a certain file | bmat | General | 3 | 09-25-2007 09:06 AM |
How to verify a Scheduled Backup? | tuqqer | General | 3 | 12-06-2005 06:50 PM |
(Zero-length) File caused SuperDuper to abort backup | alancfrancis | General | 7 | 08-31-2005 10:42 AM |
Smart Backup Error | bill s | General | 20 | 02-04-2005 09:46 AM |