On Sat, Jan 24, 2004 at 10:44:42PM -0700, Scott Paul Robertson wrote: > On Sat, Jan 24, 2004 at 09:35:21PM -0800, Erin S. wrote: > > i accept corrections if i'm wrong, but i'm pretty sure that if you do: > > tar -czvf /tmp/ng32backup.tar.gz ~/ > > you'll have what you want... the z means to zip (compress) if i'm > > remembering all of this correctly... that would mean that it would be > > a gzipped tar, and so you should give it the additional gz extension... > > am i right? > > ~Erin > > > > You're dead on. > Some other fun tar things: > tar -cjvf ... make it a bzip2 (bz2 extension) > tar -cZvf ... run it through compress (I don't have compress so this > doesn't work for me) > > tar has a great many options, I found about these through tar --help. I > love --help.
Also `man' and `info' are your friends. Here is a more complicated syntax that lets you pass options to the compressor you use for your tar file: tar cf - ~ | bzip2 -9v > /tmp/backup.tar.bz2 OR tar cf - ~ | gzip -9v > /tmp/backup.tar.gz bzip2 gives better compression. There is no reason to use gzip when you know bzip2 will be available, and <yawn> compress is still patented. No need to apply forbidden voodoo if you don't have to. Justin _______________________________________________ newbies mailing list [EMAIL PROTECTED] http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
