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!!! |
It's scriptable, yes. But you can get it to send notifications much more easily: just install Growl and configure the MailMe notification type...
|
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 |
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.
|
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 |
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...
|
Thanks for pointing me in that direction. I did find it and was able to see and understand what it's doing. What I could not seem to find were the specific attributes that I am writing to the FM database. So, I thought I would look in the log file to see if there was anything in there I could see. What I found is that the date and (obviously) time is there as well as the volume information:
Code:
| 04:35:08 AM | Info | Started on Wed, Apr 11, 2007 at 4:35 AM Code:
| 05:39:32 AM | Info | Evaluated 481570 items occupying 54.43 GB (81555 directories, 367861 files, 32154 symlinks) |
You'll have to parse the log. Of course, you already have the date and time...
|
Well, I can't seem to find any examples to parse the log file. Can anyone help out?
|
Noone has any simple examples for this? :(
|
Doesn't look like it... sorry!
|
Hi ShosMeister
Maybe some good folks at either site below could help you construct your script. I serached for "parse" on both sites which came up with quite a few ideas. http://discussions.apple.com/forum.jspa?forumID=724 http://bbs.applescript.net/viewforum.php?id=2 Budgie |
All times are GMT -4. The time now is 04:17 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.