From owner-freebsd-questions@FreeBSD.ORG Thu Aug 16 13:10:58 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD79216A41B for ; Thu, 16 Aug 2007 13:10:58 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id C56BC13C481 for ; Thu, 16 Aug 2007 13:10:58 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l7GDAvc0035602; Thu, 16 Aug 2007 09:10:58 -0400 (EDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org, Grant Peel Date: Thu, 16 Aug 2007 09:10:12 -0400 User-Agent: KMail/1.9.7 References: <00b601c7e003$fb1e0200$6501a8c0@GRANT> In-Reply-To: <00b601c7e003$fb1e0200$6501a8c0@GRANT> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708160910.14095.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Subject: Re: Dump + GZIP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2007 13:10:58 -0000 On Thursday 16 August 2007, Grant Peel wrote: > Can I safely pump a filesystem dump through gzip during the dumping > process?, or di I need to create the dump first then gzip it after? I do it all the time: dump -f - ... | gzip > date_filesystem.dump.gz or with bzip2: dump -f - ... | bzip2 > date_filesystem.dump.bz2 > Does zipping the dumps cause any headaches at restore time? Nope: bzcat date_filesystem.dump.bz2 | restore ... -f - > (I currently dump 5 servers worth of data to a raid 5 array, and am about > 20% away from running out of disk space). > > Does gzipping a file give a decent compression ratio? Depends on what you're compressing, but generally yes. bzip2 generally compresses better but takes a lot more time, CPU and memory at compression time. JN