![]() |
|||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1
|
|||
|
|||
Where is the log file stored?
I have SuperDuper running on a OS X server about 1000 miles away. Most of the maintenance and other misc. tasks I do through the terminal. Since I just started using SuperDuper (in place of ChronoSync and CCC), I want to monitor it closely until it gains my full and complete trust. So I want to make sure that my scheduled backups are actually occurring, so what would be the best way of verifying this:
1) Maybe through the log file??? Where is it? 2) Maybe some UNIX command line that will show me the last time a drive was touched??? How? 3) Maybe SuperDuper has a way of notifying the user when a particular Backup succeeded or failed??? Anyway, I just want to get feedback on what's the best approach to this? |
#2
|
||||
|
||||
The log file is stored in the settings package for the given scheduled copy, stored in Library/Application Support/SuperDuper!/Scheduled Copies. You'll find the logs inside the appropriate package, in the Logs folder.
If you want it to notify you when the copy happens, I'd suggest modifying the "Copy Job" script you'll find in the same package. Edit the entries at the top to do whatever you'd like for notification (you can even use "path to me" to find the location of the logfiles and the like). Then, uncheck and re-check the schedule checkbox, and we'll compile the script for you. Does that help?
__________________
--Dave Nanian |
#3
|
|||
|
|||
I'm not sure it does help. I'm trying to accomplish this through the Terminal and the only thing I find that is "Cron Job" is a file called "Cron Job.app". So I'm not sure where to go from here.
|
#4
|
||||
|
||||
You mean 'Copy Job.app'?
Parallel to that you should see a "Logs" folder. Go in that folder and you'll see the logs.
__________________
--Dave Nanian |
#5
|
|||
|
|||
I found the Logs folder. I was responding to this statement of yours:
Quote:
Also, yes I meant "Copy Job". Last edited by pwharff; 12-06-2005 at 07:21 PM. |
#6
|
||||
|
||||
No, it won't say "Copy complete" if there are problems -- it'll end with an error.
The previous statement is referring to the "Copy Job.applescript" you'll also find parallel to the Copy Job.app. The "app" is the compiled version.
__________________
--Dave Nanian |
#7
|
|||
|
|||
Ahh, thanks a bunch! I think I'll write a shell script to look at the last line and verify if "Copy Complete" exisits. This would be reliable, right?
|
#8
|
||||
|
||||
Well, it assumes we're not going to change the text -- which we shouldn't, but don't guarantee. It should work, though.
It might be easier to look at the .scheduleJobProperties file at the top of the package. This is a little XML file that'll tell you the last stop time, and also says whether or not the execution succeeded. Here's a snippet of one: Code:
[g5:SuperDuper!/Scheduled Copies/Smart Update G5 from Macintosh HD.sdsp] dnanian% cat .scheduledJobProperties <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>SDExitStatus</key> <string>normal</string> <key>SDLogFileName</key> <string>/Users/dnanian/Library/Application Support/SuperDuper!/Scheduled Copies/Smart Update G5 from Macintosh HD.sdsp/Logs/2005-12-06 17:47:24 -0500.sdlog</string> <key>SDScheduleStartTimestamp</key> <date>2005-12-06T22:47:25Z</date> <key>SDScheduleStopTimestamp</key> <date>2005-12-06T23:53:01Z</date>
__________________
--Dave Nanian |
#9
|
|||
|
|||
Thank you once again. One last question, what is the "0800" at the end of my log filename? Is this my GMT offset?
|
#10
|
||||
|
||||
Yes, it is.
__________________
--Dave Nanian |
#11
|
|||
|
|||
Not the best at shell scripting, but would this script be adequate:
Code:
head -6 .scheduledJobProperties | tail -2 | sed 's/\<key\>//g' | sed 's/\<\/key\>//g' | sed 's/\<string\>//g' | sed 's/\<\/string\>//g' | awk '{ print $1 }' |
#12
|
||||
|
||||
Looks about right to me!
__________________
--Dave Nanian |
#13
|
|||
|
|||
Is the string for <key>SDExitStatus</key> always the 6th line?
|
#14
|
||||
|
||||
At present. Of course, we can't guarantee that long term... it might be easier to use a grep expression to search for SDExitStatus, or just sed search for it in the file, since the value will always follow the key. That's be less dependent on the actual location.
__________________
--Dave Nanian |
#15
|
|||
|
|||
Duh! You're right! This works much better:
Code:
grep -A 1 SDExitStatus .scheduledJobProperties | sed 's/\<key\>//g' | sed 's/\<\/key\>//g' | sed 's/\<string\>//g' | sed 's/\<\/string\>//g' | awk '{ print $1 }' Last edited by pwharff; 12-07-2005 at 05:22 PM. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
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 |