[SD] Sparse Image 'size creep'
Hello all,
Here's my query... I back up my main HD (which at present is using ~ 18gb), I run SD using Smart Backup (this usually takes around 5 minutes), my final backup image weighs in at around 22.4gb. Why is there this size increase? It seems to happen every time (a size increase), even if not much has changed. Apologies if this is a silly question, I am just curious. |
It's the way Apple manages free space inside a sparse image. They tend to expand the external size before they re-use internal space...
|
Quote:
|
True but you can also compact the image file.
hdiutil compact '/Volumes/<drive>/<path>/backup.sparseimage' |
Quote:
"hdiutil: compact failed - Device not configured" Are we sure this is supposed to work, and (separate question) if so, could/should this be default behavior when doing a Smart Update? |
Yes, this definitely works. It sounds like you didn't point at the (unmounted) file.
While it could be the default behavior, I don't think it should be. It's quite slow and isn't generally necessary... |
It was indeed unmounted. I have six of them, Sunday through Friday -- Saturday gets the Mirror. The Smart Updated images are backups of my home folder, which is about 3.5 gig. The images now range from 9 to 12 gig, so I'm looking for a nice way to size them back down. This is what I get:
Code:
>hdiutil compact Tuesday.sparseimage |
I honestly have no idea what would cause that. It indicates that something -- likely in the track to the image -- is failing. But the message is Apple's, and it's obscure enough that I'm not sure what it's referring to.
Is there more detail in the system.log? |
Nothing shows up in /var/system.log.
I did finally find this: http://www.macosxhints.com/article.p...41207153823222 (via shirt-pocket.com forums here, incidentally: http://www.shirt-pocket.com/forums/a...php/t-577.html) For whatever reason, using the AppleScript actually does perform the compaction. But running that same hdiutil command in bash doesn't. I just don't understand that. Also, I get this message in system.log: Code:
diskimages-helper[7433]: compaction returned error 0\n |
I don't understand that either. Weird.
|
All times are GMT -4. The time now is 01:26 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.