From owner-freebsd-questions@FreeBSD.ORG Thu Aug 16 14:20:34 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 9663F16A417 for ; Thu, 16 Aug 2007 14:20:34 +0000 (UTC) (envelope-from florenzi@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.231]) by mx1.freebsd.org (Postfix) with ESMTP id 54A7D13C457 for ; Thu, 16 Aug 2007 14:20:34 +0000 (UTC) (envelope-from florenzi@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so96492nzf for ; Thu, 16 Aug 2007 07:20:33 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XNJnxPUQxlScezajfhZuQna7+a41fxEUhPJe6OFUfLZKDTTBvsooAaj6wYHZ3BrLrZy1nILgkSAVEFzj9sKrpVnnekQ6kUUEMjQdskJEt6vSj3Dqozjtf37dTTYlNYvbx9zUES/SmWaPYN5Lbb9nNSF3R8NhzKYLvCZsHlSGEZY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=c6iHW76PV2hVIF14ln102jthRMDAwGgV23Gzxs0JkwCsn7TRBIq4ot4UlqVoPFPpo+o1z8o8BDy1nx/+nDGx8S6wPBPVRFs0kZfmXm0sI7U50pRldl0PACH2/t+4DtXHy274qvA3GxoIbFceprCw32mfsstx8I9fAs8TUMHUkFU= Received: by 10.64.142.10 with SMTP id p10mr3233732qbd.1187274033480; Thu, 16 Aug 2007 07:20:33 -0700 (PDT) Received: by 10.64.91.18 with HTTP; Thu, 16 Aug 2007 07:20:33 -0700 (PDT) Message-ID: <3a386af20708160720x293bef5cya2cd41cebdf79c63@mail.gmail.com> Date: Thu, 16 Aug 2007 16:20:33 +0200 From: "Federico Lorenzi" To: "John Nielsen" In-Reply-To: <200708160910.14095.lists@jnielsen.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <00b601c7e003$fb1e0200$6501a8c0@GRANT> <200708160910.14095.lists@jnielsen.net> Cc: Grant Peel , freebsd-questions@freebsd.org 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 14:20:34 -0000 On 8/16/07, John Nielsen wrote: > 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. Try give LZMA a shot. The last time I checked, it was a lot faster then bzip2 at decompression and made smaller files too. For speed however, gzip would be the best choice. Federico