#1
|
|||
|
|||
Getting the copy results in a script
Hi, all.
I want to build a nightly backup script that mounts my firewire drive, does a sync, and then dismounts the drive. Finally, I want it to tell me how much work it did, or report any errors. From other forum posts, I see how to do everything but report the status of the sync. At the end of the log, one sees |05:50:30 PM|Info| Scanned 972350 items occupying 67.44 GB (133183 directories, 832366 files, 6801 symlinks) |05:50:30 PM|Info| Copied 972241 items totaling 67.37 GB (133162 directories, 832282 files, 6797 symlinks) |05:50:30 PM|Info| Cloned 67.37 GB of data in 3854 seconds at an effective transfer rate of 17.90 MB/s Anyone know a clever way to get that data into an email? My current plan is some ick involving grep, cut, and tail on the log file, but that is not elegant. Scott |
#2
|
||||
|
||||
Your unelegant solution would be exactly what I would suggest, unless you want to do it in AppleScript. Given that you know what grep, cut and tail are, that seems unlikely...
__________________
--Dave Nanian |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Script to copy only certain files | nakris | General | 2 | 04-14-2005 05:16 PM |
Smart Backup Error | bill s | General | 20 | 02-04-2005 09:46 AM |
My copy script says SuperDuper! should ignore a folder, but it's copied. Why? | dnanian | Frequently Asked Questions | 0 | 12-24-2004 02:42 PM |
ASR Image freeze | PeterBest | General | 5 | 12-01-2004 09:02 AM |
When I try to copy a single directory, I end up copying the whole disk. Why? | dnanian | Frequently Asked Questions | 0 | 06-22-2004 06:59 PM |