Correct syntax for bzip and gnu tar

From: LHradowy (laura.hradowy_at_NOSPAM.mts.ca)
Date: 10/08/03


Date: Wed, 8 Oct 2003 14:10:48 -0500

I have an HPUX B.11.00 U 9000/800
I have just installed the depots for gnu tar, gzip, and bzip2.

What is the correct syntax to tar up a directory....
To use the gzip and tar in the same command...

gtar -zcvf backupfile.??? /opt/app/dir .

I dont know what to put for the extension of the gzip file. Another
question... using the . at the end, it this tared relatively, I have seen
others use the - What is the difference?

I also want to do some testing with bzip2
gtar -jcvf backupfile.??? /opt/app/dir .

Again, what is the correct syntax?
As well, does gzip or bzip combined with gtar, take up alot of space, does
it have to tar the file first, and if it is tarring a 3 GB file, would it
put that 3GB file into swap before it starts to compress it.



Relevant Pages

  • Correct syntax for bzip and gnu tar
    ... I have just installed the depots for gnu tar, gzip, and bzip2. ... What is the correct syntax to tar up a directory.... ...
    (comp.unix.questions)
  • Correct syntax for bzip and gnu tar
    ... I have just installed the depots for gnu tar, gzip, and bzip2. ... What is the correct syntax to tar up a directory.... ...
    (comp.unix.programmer)
  • Correct syntax for bzip and gnu tar
    ... I have just installed the depots for gnu tar, gzip, and bzip2. ... What is the correct syntax to tar up a directory.... ...
    (comp.unix.shell)
  • AirLink NIC rhinefet.tar bad format fix
    ... I spotted some nic cards @US$6.99, ... tar: This does not look like a tar archive ... gzip compressed data, from Unix ... card as eth2 in thunderbird; meanwhile, vehicle has the card, and the ...
    (comp.os.linux.networking)
  • Re: File size limitations
    ... > GNU tar as no file size limit. ... >> gzip might have a problem, given gzip uses 32 bit length fields and such. ... > bzip2 does have good error recovery for large files. ... > wise to break up the tar file into pieces and compress them separately. ...
    (comp.compression)