Forums temporarily locked down! Please read!

Author Topic: Recover unused space from all encrypted folders at once?  (Read 2995 times)

nanowhisker

  • Newbie
  • **
  • Posts: 1
    • View Profile
Recover unused space from all encrypted folders at once?
« on: June 01, 2010, 07:33:31 PM »
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
« Last Edit: December 31, 1969, 11:00:00 PM by Guest »

greg

  • Administrator
  • Veteran
  • *****
  • Posts: 898
    • View Profile
    • http://www.taoeffect.com
Re: Recover unused space from all encrypted folders at once?
« Reply #1 on: June 02, 2010, 03:42:37 AM »
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:

Code: [Select]
hdiutil resize -size 250g ".Secret.sparseimage"
Simply do this:

Code: [Select]
hdiutil compact ".Secret.sparseimage"
« Last Edit: December 31, 1969, 11:00:00 PM by Guest »
Follow @espionageapp on twitter for news!