|
#1
|
|||
|
|||
AppleScript
Is SuperDuper scriptable? I have been using Retrospect and was thinking of changing over to SuperDuper for it's ease, speed and bootable image options. I had pieced together an AppleScript to run with Retrospect that would log all of the actions as far as volumes, files, dates, times, etc. of the backup and also send out an e-mail if there was an error. Any way to do this with SuperDuper?
Thanks!!!
__________________
http://www.boincstats.com/signature/user_bam21431.gif Last edited by ShosMeister; 04-10-2007 at 07:55 PM. |
#3
|
|||
|
|||
That may be, but, the e-mail is the least of the items. I like to track the backup progress via the database that I've set up. I can see if the backups are taking longer than expected; if the users have added a bunch of "junk" to their machines; that everyone backed up and how much; etc.
If it is scriptable, is there any help doc that gives the available attributes/properties/methods/etc? Thanks
__________________
http://www.boincstats.com/signature/user_bam21431.gif |
#4
|
||||
|
||||
The scripting dictionary is available in the normal way. However, I don't think you're going to find super extensive abilities. You could, however, modify our "schedule driver" (which is an applescript, available in the application bundle) to log additional information if necessary.
__________________
--Dave Nanian |
#5
|
|||
|
|||
I'm not sure what you mean by the "normal way". I've done a very minimal amount of Apple Script and all of it was done by using other sample code and modifying it to fit my needs. For example, this is the code that I cobbled together from samples in Retrospect and FileMaker to log the actions of the backup:
Code:
on volumeEnd given VolumeName:theVolume, KBCopied:theKB, FileCount:theFileCount, DurationInSeconds:theDuration, BackupDate:theBackupDate, startDate:theStartDate, endDate:theEndDate, destinationName:theDestination, ClientName:theClient, zoneName:theZone, scriptName:theScript, backupTypeString:theBackupType, subvolumeDiskName:theDiskName, fileErrorCount:theFileErrorCount, volumeErrorCode:theVolumeError, volumeErrorMessage:theVolumeErrorMessage, activatorCodeString:theActivatorCode set gStorageSet to theDestination set gNumVolumesBackedup to gNumVolumesBackedup + 1 if theVolumeError is not 0 or theFileErrorCount is not 0 then set gVolumeErrors to gVolumeErrors + 1 end if if theDiskName is not "" then set theParent to "The Subvolume’s parent disk is \"" & theDiskName & "\"." else set theParent to "" end if set theDuration to secondsConverter(theDuration) if theVolumeError is 0 then set theSuccess to "successfully" set mySubject to "Retrospect: Success" set gBackUpReport to gBackUpReport & "Volume \"" & theVolume & "\" completed " & theSuccess & ¬ ", copying " & theFileCount & " files for " & theKB & " K with " & theFileErrorCount & ¬ " errors." & return & return & "Script \"" & theScript & "\" finished copying volume \"" & ¬ theVolume & "\" to destination \"" & theDestination & "\"." & return & return & "Duration: " & ¬ theDuration & "." & return & return & lineDelimiter & return & return else set theSuccess to "with error " & theVolumeError & ": " & theVolumeErrorMessage set mySubject to "Retrospect: Error " & theVolumeError & ": " & theVolumeErrorMessage set gBackUpReport to gBackUpReport & "•Error•" & return & return & ¬ "Volume \"" & theVolume & "\" completed " & theSuccess & "." & return & return & lineDelimiter & return & return end if -- Record the parameters for each volume in a new record in a database tell application "FileMaker Pro" tell document "Retrospect Database" create new record with data {theVolume, theKB, theFileCount, theDuration, theBackupDate as string, ¬ theStartDate as string, theEndDate as string, theDestination, theClient, theZone, theScript, ¬ theBackupType, theDiskName, theFileErrorCount, theVolumeError, theVolumeErrorMessage, theActivatorCode} end tell end tell end volumeEnd
__________________
http://www.boincstats.com/signature/user_bam21431.gif |
#6
|
||||
|
||||
Well, take a look at the schedule driver in the application package ("Copy Job Script.template") and you'll see how it works and where you can fit your stuff in...
__________________
--Dave Nanian |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
An (Applescript) hack to automate mounting and unmounting external volumes | kbradnam | General | 12 | 07-30-2007 07:12 AM |
A strategy for managing SD! jobs via AppleScript | Syzygies | General | 15 | 05-01-2006 07:55 AM |
Problems automating backups with applescript and crontab | kbradnam | General | 4 | 01-20-2006 07:40 AM |
applescript help | snoopy67 | General | 1 | 09-17-2005 09:07 AM |
AppleScript bug? fixed! | pzingg | General | 1 | 11-02-2004 06:37 PM |