Mac – Archive Utility Error 13 – Permission Denied attempting to create archive

archivehigh sierrapermissiontime-machine

I want to compress a Time Machine backup folder to a Zip file on another drive. I've set what I believe are the right preferences for Archive Utility. But when I try to run it, I immediately get "Error 13 – permission denied". It doesn't tell me whether the problem is with the source folder or the destination archive, and I don't know where to look.

I've read everything I can find on Archive Utility, but can't find the solution. Does Archive Utility need write permissions on the source item? If so, that could be my problem.

Also, what user does Archive Utility run as? Is there complete documentation for it anywhere?

Best Answer

It is not a good idea to compress the folder as a zip. Time Machine uses directory hard links a lot and zip does not recognize them. So you might end up with a zip archive 10 time (or more, depending on size and modification frequency) bigger than the space your Time Machine backup originally requires. If you have to have your backup as a file, then create a compressed image from your Time Machine disk.

Open Disk Utility. Select your TM drive, and go to "File - New Image - Image of ". Then choose "compressed" in "format". Choose a location and click "save". This operation might take several hours to several days depending on the size and complexity of your backup.

If you want to do it no matter what, you have to use the command line.

sudo zip -9ry /where/you/want/zip/to/be.zip /path/to/backup/