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 02-18-2005, 03:01 PM
kbradnam kbradnam is offline
Registered User
 
Join Date: Feb 2005
Location: Davis, CA
Posts: 25
Problems automating backups with applescript and crontab

Another day, another question :-)

Ok, so now I'm confortable backing up data to our (newly arrived) external drives, my next challenge was to automate the whole thing.

I've taken the example Daily Backup script, made suitable adjustments to the name so that it loads the correct set of saved settings. I've set up my crontab file so that it runs correctly at the desired time.

The problem is as follows. Whilst I will be backing up daily to our external firewire drive, I will also be backing up weekly to a pocket firewire drive which I will keep off site (in case of fire/theft of our main server and the local backup drive).

So even though the pocket firewire drive is no longer around (I took it home yesterday), SuperDuper! seems to remember that it once existed and that it contained a destination backup volume.

When SuperDuper! launches (via the crontab applescript) it pops up an error 'Cannot find target volume ....". Everything then just waits until the 'Cancel' button is clicked in the error window. Effectively this means that I can't automate the backups at the moment unless the pocket firewire drive is plugged in.

I've looked in the com.blacey.SuperDuper!.plist file to see if the list of 'remembered' backup volumes was there (thinking that I could just delete the relevant entry for now), but I can't find it.

I also tried removing the SuperDuper Cache directory but it still insists on trying to find the pocket wirewire drive.

Any ideas? I guess the other thing would be if AppleScript can 'click' the cancel button for you (I've never programmed in AppleScript before).

Regards,

Keith
Reply With Quote
  #2  
Old 02-18-2005, 03:18 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
This is a problem that we're going to resolve in v2.0. At present, the last selected backup volume is prompted for at the start of execution, and if it's not there the script will time out, as you've seen.

You can remove the default destination drive setting from com.blacey.SuperDuper!.plist: the settings you want to delete are "SDSourceVolume" and "SDTargetVolume", and the data blocks...

You can also load different settings at the end of the firewire backup that will point to a volume that's going to be there during automatic execution...
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 02-18-2005, 10:02 PM
sjk's Avatar
sjk sjk is offline
Registered User
 
Join Date: May 2004
Location: Eugene
Posts: 252
You're not alone, Keith. Sometimes SuperDuper! seems overzealous about selecting volumes, especially during automated backups. I know the fine folks at Shirt-Pocket will eventually have a solution for us.
Reply With Quote
  #4  
Old 01-20-2006, 05:51 AM
Syzygies Syzygies is offline
Registered User
 
Join Date: Jan 2006
Posts: 23
Quote:
Originally Posted by dnanian
You can remove the default destination drive setting from com.blacey.SuperDuper!.plist: the settings you want to delete are "SDSourceVolume" and "SDTargetVolume", and the data blocks...
As of 2.0.1, this seems to have changed; I can't find these settings. To try to deduce what they might now be, I dumped the plist before and after a new SD! manual execution. The three benign changes to the plist gave no clue to my new source and destination settings, which SD! remembers.

Basically, my plan is to only ever manually use SD! in 'development' mode. I want any script that I write to give SD! a case of amnesia when it's done.
Reply With Quote
  #5  
Old 01-20-2006, 07:40 AM
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
They're in the .DefaultSettings.sdsp in ~/Library/Application Support/SuperDuper!/Saved Settings.
__________________
--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


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


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