|
#1
|
|||
|
|||
Automated Sparse Image Shrinking?
Hello!
Is there a way to shrink my sparse image file automatically every time after updating it with SuperDuper? At the moment, after using SD! I always shrink it manually with the "hdiutil compact " command in the Terminal. Could I make a script and include it in the backup/updating process of SD? And how would this script have to look like? Or will this soon be an easy-to-use checkbox option included in SD? (Still hoping for it!) (If so, I would also appreciate an additional option to shrink it only every xx-th backup. ) Thanks for your answers! |
#2
|
||||
|
||||
You could try to do this, parabel, but it's not a really good idea to over-compact. How about writing yourself a little AppleScript that you can schedule in iCal ever few weeks?
If you really must do this in SD!, you'd want to use a shell script like: Code:
!/bin/sh nohup /bin/bash -c "sleep 30;hdiutil compact $6" &
__________________
--Dave Nanian |
#3
|
|||
|
|||
What is your reserve when you write: “but it's not a really good idea to over-compact”?
I am not familiar with the process of scripts. I would like such a script carry out by iCal or SD using the option “Run shell script after copy completes”. I sought well in iCal and SD guide, but I do not reach that point. Could you be more specific with the steps to be followed? Thank you very much |
#4
|
||||
|
||||
You know, if you're not terribly familiar with shell scripting, etc, it might not be a good idea to take these steps, since it requires a certain amount of familiarity with Unix... you sure you want to avoid doing this manually every so often?
__________________
--Dave Nanian |
#5
|
|||
|
|||
I have every intention of familiarize me with the writing of scripts, not only for SD. I seek references on the subject.
The option “Run Shell script after Copy” could be enabled, only when needed, without having to repeat each time the operations in Terminal. |
#6
|
||||
|
||||
There are many books on Shell Scripting, including a number of well known ones from O'Reilly. I think there are even online versions of those books that can be accessed, perhaps even for free...
__________________
--Dave Nanian |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Restoring from sparse image | catxtwo | General | 7 | 11-11-2008 03:25 PM |
Ever-Growing Sparse Image File... | Marco_Polo | General | 6 | 02-19-2007 10:21 AM |
Testing a sparse image... | macmidiguy | General | 5 | 05-14-2006 01:51 PM |
not ejecting sparse image after backup | rossb | General | 7 | 02-08-2006 05:20 PM |
Sparse image from aborted DMG backup? | Winston | General | 9 | 10-22-2005 12:28 PM |