From owner-freebsd-questions Fri Aug 16 9:37:44 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 617CE37B400 for ; Fri, 16 Aug 2002 09:37:41 -0700 (PDT) Received: from mailout6.nyroc.rr.com (mailout6-1.nyroc.rr.com [24.92.226.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7B3343E42 for ; Fri, 16 Aug 2002 09:37:40 -0700 (PDT) (envelope-from met@uberstats.com) Received: from SURVIVAL (rrcs-nys-24-97-200-196.biz.rr.com [24.97.200.196]) by mailout6.nyroc.rr.com (8.11.6/RoadRunner 1.20) with ESMTP id g7GGbdC10815; Fri, 16 Aug 2002 12:37:39 -0400 (EDT) From: "MET" To: "'Roman Neuhauser'" Cc: Subject: RE: Compression || Noobie Date: Fri, 16 Aug 2002 12:42:41 -0400 Message-ID: <002601c24543$f0af2250$6901a8c0@SURVIVAL> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <20020816163250.GH389@freepuppy.bellavista.cz> Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks. ~ Matthew -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Roman Neuhauser Sent: Friday, August 16, 2002 12:33 PM To: MET Cc: freebsd-questions@freebsd.org Subject: Re: Compression || Noobie > From: "MET" > To: > Subject: Compression || Noobie > Date: Fri, 16 Aug 2002 12:04:44 -0400 > > I've got ever growing databases that are just getting massive. I've > already written a program (out of odd entertainment) that creates > backups of the databases. It also manages the files to only keep a > certain amount around in the directory. Anyways, I'm missing one KEY > piece. How do I compress them? Naturally its got something to do > with 'tar -c --file=file.tar file', but when I run that it does 'tar' > the file, but does not compress the file one bit. tar does not compress. if you want to compress individual files, use % bzip2 -k foo if you want to compress multiple files (or a directory) in one archive, use % tar cjf archive.tar.bz2 foo [bar baz] decompression is done by one of these: % bzip2 -dk foo.bz2 % tar xjf archive.tar.bz2 -- FreeBSD 4.6-STABLE 6:27PM up 7 days, 6:21, 20 users, load averages: 0.09, 0.06, 0.01 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