docs:tips_n_tricks:max_os_x:zip.html
This is an old revision of the document!
Zip
Using pipes
I am not sure, wether this is a OS X, BSD or even more general finding. The problem occurs if you follow the samples in the manpage to create zips with pipes
tar -cf - . | zip backup -
and extract them accoringly:
unzip backup - | tar -xf -
This will not work. The reason is - as stated in the man page as well - that zip switches to Zip64 mode which is suited for large files as on a pipe the file size is not known in advance. And obviously unzip can't handle that format. There are to solutions to this:
- Pack with
-fz-
tar -cv - . | zip backup.zip -fz- -
- Unpack with
funzip
:funzip backup.zip | tar -xf -
According to the man page, gunzip
should work too, but neither the builtin gunzip
from OS X 10.6.x nor the gunzip
from MacPorts recognized the format.
docs/tips_n_tricks/max_os_x/zip.html.1360510088.txt.gz · Last modified: 10.02.2013 16:28 CET by peter