From owner-freebsd-questions Fri Aug 16 9:34:50 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 5D99837B401 for ; Fri, 16 Aug 2002 09:34:46 -0700 (PDT) Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by mx1.FreeBSD.org (Postfix) with SMTP id ABDE143E88 for ; Fri, 16 Aug 2002 09:34:44 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: (qmail 10091 invoked from network); 16 Aug 2002 16:34:32 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 16 Aug 2002 16:34:32 -0000 Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id D359985; Fri, 16 Aug 2002 18:32:50 +0200 (CEST) Date: Fri, 16 Aug 2002 18:32:50 +0200 From: Roman Neuhauser To: MET Cc: freebsd-questions@freebsd.org Subject: Re: Compression || Noobie Message-ID: <20020816163250.GH389@freepuppy.bellavista.cz> Mail-Followup-To: MET , freebsd-questions@freebsd.org References: <002401c2453e$a86ba130$6901a8c0@SURVIVAL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002401c2453e$a86ba130$6901a8c0@SURVIVAL> User-Agent: Mutt/1.5.1i 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 > 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