Re: How to tar -z



Dennis W. Bulgrien <dbulgrien@xxxxxxxx> wrote:
man gzip says GNU tar supports the -z option to invoke gzip
transparently. Our HPUX's tar doesn't (man tar; tar -z... tar: z:
unknown option). How does one create a one-file archive (for ftp'ing)
of an entire directory tree without doing a tar followed by a gzip
(which requires double disk space).

That's why pipes were invented! :-)

I.e. just use "f -" on tar to direct the output to standard output and
let gzip read from the pipe, i.e. something like:

tar <other_options>f - <other_parameters> | gzip ...
.



Relevant Pages

  • Re: How to tar -z
    ... Dennis W. Bulgrien wrote: ... create a one-file archive of an entire directory tree without ... doing a tar followed by a gzip (which requires double disk space). ...
    (comp.sys.hp.hpux)
  • How to tar -z
    ... man gzip says GNU tar supports the -z option to invoke gzip transparently. ... create a one-file archive of an entire directory tree without ... doing a tar followed by a gzip (which requires double disk space). ...
    (comp.sys.hp.hpux)