From owner-freebsd-questions Fri Dec 31 16:57:47 1999 Delivered-To: freebsd-questions@freebsd.org Received: from web2.tccsweb.com (h-209-91-78-12.gen.cadvision.com [209.91.78.12]) by hub.freebsd.org (Postfix) with ESMTP id B14C614EC1 for ; Fri, 31 Dec 1999 16:57:38 -0800 (PST) (envelope-from brentr@tccsweb.com) Received: from localhost (brentr@localhost) by web2.tccsweb.com (8.9.3/8.9.3) with ESMTP id SAA05519; Fri, 31 Dec 1999 18:18:00 -0700 (MST) (envelope-from brentr@tccsweb.com) Date: Fri, 31 Dec 1999 18:17:59 -0700 (MST) From: Brent Rector 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 The syntax you want is tar cf - home | gzip > home.tar.gz -------------------------------------------------------------------------- Brent L. Rector SoHo Internet Services & TCCSweb SysAdmin (604) 979-2141 brentr@tccsweb.com http://www.tccsweb.com -------------------------------------------------------------------------- Your mouse has moved. Windows must be restarted for the change to take effect. Reboot now? [ OK ] -------------------------------------------------------------------------- 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. > > 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. > > thanks in advance. > > > ===== > MAY THE FORCE BE WITH YOU. > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://messenger.yahoo.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message