#1
|
|||
|
|||
Compressing the sparse image file ...
Hi,
Every time a SD backup is made to a sparse image file, the file increases in size. I would like to automate this procedure by executing a shell script at the end of my backup. I wrote a regular AppleScript that works well. Can somebody help me convert this script in SS language: Code:
property imagesPathList : {"/Sauvegardes/SuperDuper/Duplication - iMacG5.sparseimage"} tell application "Caffeine" turn on end tell repeat with i in imagesPathList set filePath to i try do shell script "hdiutil compact " & quoted form of filePath end try end repeat tell application "Caffeine" turn off end tell Robert Lespérance P.S. Caffeine is an utility that can reset the system's idletime periodically, preventing the computer of going to sleep. I suspect that the shell script will not need these statements because SD does that already. |
#2
|
||||
|
||||
Why not just run this using an iCal alarm, Robert, after the SD! backup has finished?
__________________
--Dave Nanian |
#3
|
|||
|
|||
Hi Dave,
Good suggestion ... I new that one. I wanted to try out SD's options to execute a shell script after completion. Since I don't know shell scripting I thought that somebody out there could help me with this one. This way, it would execute exactly after the backup, when source and destination are available. Since I don't know the exact time the backup would be completed, I wouldn't have again to awake the computer, launch the script, mount the destination folder and reset the idletime during execution. Stated simply, everything would be much more simpler with SD's shell script execution feature. Can you help me with this shell script ? Regards. Robert |
#4
|
||||
|
||||
You can't really do this in an after-copy shell script without it getting complicated, because the image isn't unmounted.
Remember you can set an alarm and it'll go off when the Mac wakes. It doesn't have to wake.
__________________
--Dave Nanian |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sparse Image - out of space | rgrahame | General | 1 | 11-14-2008 03:43 PM |
SD not unmounting sparse image volumes | acronce | General | 1 | 09-14-2008 11:22 AM |
Hangs while backing up to network mounted sparse image | acronce | General | 9 | 09-11-2008 01:25 PM |
Ever-Growing Sparse Image File... | Marco_Polo | General | 6 | 02-19-2007 10:21 AM |
Sparse image from aborted DMG backup? | Winston | General | 9 | 10-22-2005 12:28 PM |