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

by admin on December 20, 2007

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.

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>