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

Go Back   Shirt Pocket Discussions > SuperDuper! > General

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-03-2005, 01:18 PM
edoates edoates is offline
Registered User
 
Join Date: Jul 2005
Posts: 44
SD 2.0.1 changed saved settings file names

Just a note to other users who might be using scripts to run SuperDuper! (the scripts I use are included below for reference and for your use if you like them).

My scripts use the following to launch SuperDuper! and load a particular backup saved setting:

tell application "Finder"
activate
open document file "Backup Music.sdsp" of folder "Saved Settings" of folder "SuperDuper!" of folder "Application Support" of folder "Library" of folder "edoates" of folder "Users" of startup disk
end tell

Version 1.x on SD had the file extension name of ".sds". With V2.0.1, that name has changed to ".sdsp".

I don't use SD scheduling because I have everything set up for Cronnix scheuduling already, and I dismount my sparse image volume and compact it after SD had finished running.

Ed
__________________________________
PS: my complete SD backup applescript:

tell application "Finder"
activate
open document file "Backup Music.sdsp" of folder "Saved Settings" of folder "SuperDuper!" of folder "Application Support" of folder "Library" of folder "edoates" of folder "Users" of startup disk
end tell
tell application "SuperDuper!"
try
--Wait until SuperDuper! is idle before loading and running the desired session
repeat while status is not idle
--Sleep # seconds is the best way to "wait" without using the CPU
tell application "System Events" to do shell script "sleep 5"
end repeat
if status is idle then
--Specify the saved settings as either an absolute path or just the name
run using settings "Backup Music" without user interaction
end if
--Wait until the session is done
repeat while status is running
--Sleep # seconds is the best way to "wait" without using the CPU
tell application "System Events" to do shell script "sleep 5"
end repeat
on error errMsg
display dialog errMsg & " See section 12 of the User's Guide for help with this script."
end try
--Once done, tell SuperDuper! to quit
quit
end tell
-- Tell Finder to eject the backup set
tell application "Finder"
activate
eject disk "Music Backups"
end tell
activate
display dialog "Awaiting dismount of Music Backups" buttons {"OK"} giving up after 5 default button 1
-- compact the sparse image to prevent unregulated growth
do shell script "hdiutil compact " & "\"/Volumes/Eds Office Backups/Music Backups.sparseimage\""
activate
display dialog "Music Backup Complete" buttons {"OK"} giving up after 30 default button 1
Reply With Quote
  #2  
Old 12-03-2005, 02:36 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
A couple of things, Ed --

You might want to give the new "base" script a look (you'll find it in the settings package of a scheduled script, as "Copy Job.applescript" -- or attached to another message on the forums). I've significantly improved the way things work since the 1.x baseline Daily Backup script.

Also, the new "Disk Image" handling in SD! will automatically mount and unmount sparse images for you... and you can use the "After copy" shell script (in Advanced options) to do the compact, should you wish.

Hope that's of interest!
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 12-03-2005, 03:05 PM
edoates edoates is offline
Registered User
 
Join Date: Jul 2005
Posts: 44
Thanks; I saw that when I downloaded the new users' guide, and when I have some time (always in short supply), I'll check that out; the new sparse image handling looks especially good, since it essentially reduces my scripts to starting the correct settings and then doing the compacting at the end.

Ed

PS: I just looked around and don't find that I need to create a copy job with "schedule" to get a copy job applescript. It looks pretty easy to modify. Am I correct in reading it that all I really need to do for each of my various copy jobs (one for my system, one for my music) is to go into SD and
1. load the settings I want to use
2. "schedule" with that all set up
3. Go into the "package" copy job.applescript thus created and edit to add my after completion hdiutil compact commands?

It seems that I'd need to save this modified copy job.applescript for whenever I decided to change the schedule, etc. Is there a way I don't see in the "schedule" option or elsewhere to allow me to point to the copy job script I want it to use, or do I just modify it each time?

Last edited by edoates; 12-03-2005 at 03:23 PM.
Reply With Quote
  #4  
Old 12-03-2005, 03:34 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
That's all you need. As long as you don't delete the scheduled job, we'll retain your personalized copy and compile it for you each time you change your times. So, you need only make the change once, in the *script* there in the package.

But, you can do it with an "After copy" shellscript, too. It's up to you.
__________________
--Dave Nanian
Reply With Quote
Reply


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
alternating backup snoopy67 General 11 04-04-2009 05:14 PM
Problems with SD fdwlaw General 8 01-15-2006 10:58 AM
Request for help with an AppleScript to run two SD SmartUpdates emikysa General 2 10-13-2005 12:10 PM


All times are GMT -4. The time now is 07:03 PM.


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