Recover unused space from all encrypted folders at once?

Started by nanowhisker, June 01, 2010, 12:33:31 PM

Previous topic - Next topic

nanowhisker

Hi,

I purchased Espionage yesterday and try to find a setup which fits my needs. I use Espionage for encrypting application data like emails but also for my Aperture Library which is around 30 GB big. The latter will increase and then decrease again from time to time since I use a SSD and I store old pics on external drives. The sparsebundle files will grow with increasing content size but they will not shrink automatically. For example, if I move a 2 GB file from one encrypted folder to another, the target folder's sparsebundle will grow by 2 GB, but the source folder's sparsebundle will maintain its size. The result is that my total disk space will decrease by 2 GB although I moved (not copied) the file.
However, one can reclaim the unused space from a sparsebundle file using the hdiutil compact command in the terminal. To do so, I have to disable the folder in Espionage and perform the terminal command in the corresponding directory. From time to time, I would like to reclaim unused space from all my encrypted folders but doing it for let's say 10 folders one after another can be pretty annoying.

My question is, if you plan to implement (or if there is already) a possibility to reclaim unused space from all folders at once? Alternatively I would be thankful for a terminal command that will find all the sparsebundle files and do the hdiutil compact command on all of them. For this purpose it would be also nice to disable many folders at once in Espionage or at least to uncheck the "enabled" checkbox for one after another and do a final "save settings" instead of saving the settings each time, you click on the next folder in espionage.

Thanks in advance

greg

Quote from: "nanowhisker"My question is, if you plan to implement (or if there is already) a possibility to reclaim unused space from all folders at once? Alternatively I would be thankful for a terminal command that will find all the sparsebundle files and do the hdiutil compact command on all of them. For this purpose it would be also nice to disable many folders at once in Espionage or at least to uncheck the "enabled" checkbox for one after another and do a final "save settings" instead of saving the settings each time, you click on the next folder in espionage.

Thanks in advance

This is something we're definitely working to bring to Espionage in a nice, intuitive way. So while there's unfortunately no easy way to do what you're asking as of yet (it's theoretically possible with Apple Script), your suggestions have been noted and will be taken into account as we develop this feature.

Let me know if I can answer anything else!

Cheers,
Greg, Tao Effect

P.S. For others reading this thread, the way to compact a folder from the command line is to essentially follow these instructions, but instead of running this command:

hdiutil resize -size 250g ".Secret.sparseimage"
Simply do this:

hdiutil compact ".Secret.sparseimage"
Follow @espionageapp@twitter.com or @espionage@mstdn.io for news and updates!