From owner-freebsd-questions Fri Dec 31 14:35:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from tetron02.tetronsoftware.com (ftp.tetronsoftware.com [208.236.46.106]) by hub.freebsd.org (Postfix) with ESMTP id 6624614CFF for ; Fri, 31 Dec 1999 14:35:13 -0800 (PST) (envelope-from zeus@tetronsoftware.com) Received: from tetron02.tetronsoftware.com (zeus@tetron02.tetronsoftware.com [208.236.46.106]) by tetron02.tetronsoftware.com (8.9.3/8.9.3) with ESMTP id QAA02634; Fri, 31 Dec 1999 16:37:38 -0600 (CST) (envelope-from zeus@tetronsoftware.com) Date: Fri, 31 Dec 1999 16:37:38 -0600 (CST) From: Gene Harris To: Joss Roots Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to tar and gzip a directory In-Reply-To: <19991231222349.5436.qmail@web109.yahoomail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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