Shirt Pocket Discussions

Shirt Pocket Discussions (https://www.shirt-pocket.com/forums/index.php)
-   General (https://www.shirt-pocket.com/forums/forumdisplay.php?f=6)
-   -   Problems automating backups with applescript and crontab (https://www.shirt-pocket.com/forums/showthread.php?t=230)

kbradnam 02-18-2005 03:01 PM

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

dnanian 02-18-2005 03:18 PM

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...

sjk 02-18-2005 10:02 PM

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.

Syzygies 01-20-2006 05:51 AM

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.

dnanian 01-20-2006 07:40 AM

They're in the .DefaultSettings.sdsp in ~/Library/Application Support/SuperDuper!/Saved Settings.


All times are GMT -4. The time now is 05:54 PM.

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