Re: How to tar -z
- From: Frank Slootweg <this@xxxxxxxxxxxxxxxxx>
- Date: 19 Apr 2006 19:03:06 GMT
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 ...
.
- Follow-Ups:
- Re: How to tar -z
- From: Papa Piquillo
- Re: How to tar -z
- References:
- How to tar -z
- From: Dennis W. Bulgrien
- How to tar -z
- Prev by Date: Re: How to tar -z
- Next by Date: Re: LVM pvg
- Previous by thread: Re: How to tar -z
- Next by thread: Re: How to tar -z
- Index(es):
Relevant Pages
|
|