I've lost some sensitive data because the built-in compression utility generates corrupt files and doesn't show any error.

After I compressed about 1 Gb of files with Finder's "Compress", I decided to delete the original data just to find that the file was corrupt and couldn't be extracted. This have happened to me acouple of times.

Is there a way to change the default behavior to show errors during compressing or to replace zip from the compress contextual menu?

  • 2
    I never had an issue with the Compress option (which is based on zip actually). Did you try to unzip the compressed files with another zip tool to see whether this works better? – nohillside Sep 2 '13 at 10:48
  • @patrix hmm... Pacifist can't open the file, and BetterZip says it's password protected, I didn't pasword protected that file, weird. – rraallvv Sep 2 '13 at 11:10
  • Ok, it definitively is corrupt. Now back to your question: Are you more interested in getting the corrupted zip repaired or do you want an alternative? If both, please consider a new question for the repairing part. – nohillside Sep 2 '13 at 16:41
  • @patrix Oh, it would be great if it can be repaired I 'll google that later. So, is there a way to change the default behavior or to replace zip from the compress contextual menu? – rraallvv Sep 2 '13 at 21:16
  • I've edited the question a bit to make it more easy to understand what you are looking for. – nohillside Sep 3 '13 at 5:31

BetterZip includes a service for compressing files:

You might also just use zip or tar from the command line:

zip directory.zip directory
COPYFILE_DISABLE= tar -czf directory.tgz directory

Note that zip currently removes extended attributes and ACLs.

| improve this answer | |
  • What is COPYFILE_DISABLE for? Can I just use tar -czf directory.tgz directory? – rraallvv Sep 4 '13 at 13:01
  • @rraallvv See the question I linked to. It tells tar to remove extended attributes and ACLs instead of using the AppleDouble format. – Lri Sep 4 '13 at 13:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .