Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #17  
Old 12-07-2005, 08:31 PM
pwharff pwharff is offline
Registered User
 
Join Date: Dec 2005
Posts: 13
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
Now I need to know how to run this shell script immediately after my scheduled backup and since I don't have direct access to this server (as mentioned above, over 1000 miles away) and no remote desktop connection or VNC, just Terminal, how would I do this?
Reply With Quote
 


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

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


All times are GMT -4. The time now is 07:08 AM.


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