Date: Fri, 31 Dec 1999 16:37:38 -0600 (CST) From: Gene Harris <zeus@tetronsoftware.com> To: Joss Roots <osiris2002@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to tar and gzip a directory Message-ID: <Pine.BSF.4.10.9912311632160.1742-100000@tetron02.tetronsoftware.com> In-Reply-To: <19991231222349.5436.qmail@web109.yahoomail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 31 Dec 1999, Joss Roots wrote: > hi all, > I was doing some backup, and I am using > tar to gather the whole directory into one > big .tar file, then run gzip on that .tar > to produce a tar.gz file. From the man page, "man tar", the documentation discusses using the -z switch to filter all i/o thru gzip. If you are saving directly to tape, you can also specify --block-compress to end all blocks on an even length boundary. So, based on the man page, I would say that you could add a lower case "-z" switch to your tar statement and end up with a .tgz. > > I know it is possible to do that as one step > by using the pipe, but not sure of the exact > command line, I appreciate giving me a hint. > I would guess that you don't even have to use a pipe based on the man page. HTH, Gene To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9912311632160.1742-100000>