#16
|
||||
|
||||
There ya go.
__________________
--Dave Nanian |
#17
|
|||
|
|||
Ok, I have finally written my post backup script:
Code:
#!/bin/bash # # This script is intended to notify the Admin of backup status using Shirt Pockets SuperDuper! Success or Failure. # # Where to keep our log file logPath=/var/log/backup-disk-usage # Where is SD's .scheduledJobProperties file statusPath=/private/var/root/Library/Application\ Support/SuperDuper\!/Scheduled\ Copies/Smart\ Update\ Backup1\ from\ Server.sdsp/.scheduledJobProperties # Formatting of our log file echo "<---- Backup Status for `date` ---->" >> "$logPath" echo " " >> "$logPath" echo "Drive Backed-up: Backup1" >> "$logPath" # Find out status of SD's last backup. Success of Failure. grep -A 1 SDExitStatus "$statusPath" | sed 's/\<key\>//g' | sed 's/\<\/key\>//g' | sed 's/\<string\>//g' | sed 's/\<\/string\>//g' | awk '{ print $1 }' >> "$logPath" echo " " >> "$logPath" # Include disk capacity info df -ht hfs >> "$logPath" echo " " >> "$logPath" sleep 2 # Remotely copy to Apache HT docs dir using stored ssh key scp /var/log/backup-disk-usage pwharff@noahprecision.com:/Library/WebServer/Documents/logs |
#18
|
||||
|
||||
Well, a few things I can think of.
First, set it to run with cron well after the start of the copy -- giving it long enough to work. Second, you could use the "On successful completion" shell script in Advanced, but then it'd only run if successful. Finally, you can run from the AppleScript using both of the two completion script blocks designed for this purpose (on afterRunningCopy and on errorRunningCopy). If you want to use the shell script, you'd use "do shell script" in there. Note that you don't have to hardwire the backup path with this method, because "path to me" will give the path into the package (it'll actually be inside the Copy Job package)...
__________________
--Dave Nanian |
#19
|
|||
|
|||
Thank you very very much for your feedback and help on this subject. I feel I have better control over my backups now, because of your help and your wonderful software. Hopefully somone could use our posts to this forum to help them as well! Thanks again and again and again!
--Paul |
#20
|
||||
|
||||
I hope it'll help others as well, but I'm happy to have helped you, Paul.
__________________
--Dave Nanian |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems with SD | fdwlaw | General | 8 | 01-15-2006 10:58 AM |
SD 2.0.1 changed saved settings file names | edoates | General | 3 | 12-03-2005 03:34 PM |
No such file or directory | jjg | General | 7 | 05-06-2005 02:07 PM |
File Preventing Successful Backup | michael k | General | 4 | 03-18-2005 10:02 AM |
My backup is failing on the file /Library/Frameworks/StuffIt.framework/.DS_Store! | dnanian | Frequently Asked Questions | 0 | 04-07-2004 08:55 AM |