Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'A caution on using zip for backups' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A caution on using zip for backups
Authored by: adrianm on Nov 30, '06 09:05:39AM
Now I'm home, I tried zipping files with resource forks using right-click, Create Archive of...

It definitely stores resource fork info in there. There's a top-level __MACOSX dir in the zip containing it. This is recombined when extracting.

Using 10.4.8.

The same thing happens when emailing a folder in All the bits remain intact.

Maybe I misread the original poster, or perhaps s/he's not using 10.4 ?

~/.sig: not found

[ Reply to This | # ]

Zip does preserve forks.
Authored by: Chas on Nov 30, '06 10:06:58AM

You are correct, and the original poster is wrong. Apple wrote a special implementation of .zip format into that preserves forks but is compatible with PC files.

This tip is totally misleading and incorrect, and should be removed.

[ Reply to This | # ]
article is about command-line zip
Authored by: hayne on Nov 30, '06 10:13:44AM

The article is rather confusingly written in that it starts off by talking about the archive facility available from Finder (which does preserve resource forks - as the article says) when the main point of the article is about the command-line version of zip not preserving resource forks.

So the article is not wrong - it correctly cautions about the use of command-line zip. But it could have been better written so as to avoid the confusion.

[ Reply to This | # ]
article is about command-line zip
Authored by: mantrid on Nov 30, '06 10:37:28AM
... and following that train of thought, these are the tools that Apple says support resource forks in 10.4 (plain old zip isn't among them):

Enhanced command-line tools:
cp, mv, scp, emacs, vim, pico. Properly handle HFS+ resource forks using the new
extended attribute APIs, as do archivers such as tar, rsync, gzip, bzip2, and cpio.

[ Reply to This | # ]