in Projects, Programming, Technology

macosxhints.com – A caution on using command-line zip for backups

To archive and compress a folder foo and all of its subfolders, one can do:

$ /usr/bin/tar cjvf foo.tbz foo

And to restore it, one can do:

/usr/bin/tar xjvf foo.tbz

This seems to preserve the resource forks correctly.

Write a Comment

Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.