Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-03-2007, 05:32 PM
jszedula jszedula is offline
Registered User
 
Join Date: May 2007
Posts: 5
Multi-volume backup using Finder Folder Action

I'm using Finder's Folder Action "adding folder items to" to trigger a backup using SuperDuper! when:
1. A volume is mounted named like "B-Macintosh HD"
2. Another volume already mounted named like "Macintosh HD"
3. a SuperDuper! settings file exists with the name like "Backup Macintosh HD"
The script will work for any volume as long as there is a matched set when "Macintosh HD" is replaced by some other volume name. I can backup all the volumes on my computer plus any external drives I might want to backup as well.

This piece of Applescript code works but I was wondering if there was a better way to do this:

Code:
tell application "Finder"
-- ...
-- other code to verify proper backup conditions exist goes here
-- ...
 with timeout of 3600 seconds
  tell application "SuperDuper!"
   run using settings SettingFile without user interaction
   quit
  end tell
  repeat while (process "SuperDuper!" exists)
   do shell script "sleep 10"
  end repeat
 end timeout
end tell
Is there a way to not use the "repeat" to see if SuperDuper! has finished? I put the "repeat" loop in because when I used a backup disk with multiple partitions that satisfied the 3 trigger conditions SuperDuper! seemed to be starting the next backup before it even finished the first one. I originally did the "quit" at the end of the script. It's as if the "run using settings SettingFile without user interaction" commands are placed into a queue and not waiting for each one to complete before moving on.

Also is there a way to get rid of the count down the precedes the start of the backup? My script asks if the backup is to be done if the 3 triggers are satisfied so a "Cancel" countdown is unnecessary.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is SuperDuper blowing away a folder? ChrisC General 3 09-18-2006 04:59 PM
SuperDuper Failing on Backup - I/O Errors Stephen Kuhn General 1 08-13-2006 04:03 PM
Folder Icon changes in backup Ronin General 5 07-18-2006 12:02 PM
How to verify a Scheduled Backup? tuqqer General 3 12-06-2005 06:50 PM
Laptop freezes buring backup kaalm General 5 05-12-2005 04:15 PM


All times are GMT -4. The time now is 04:52 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.