Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2007 16:20:33 +0200
From:      "Federico Lorenzi" <florenzi@gmail.com>
To:        "John Nielsen" <lists@jnielsen.net>
Cc:        Grant Peel <gpeel@thenetnow.com>, freebsd-questions@freebsd.org
Subject:   Re: Dump + GZIP
Message-ID:  <3a386af20708160720x293bef5cya2cd41cebdf79c63@mail.gmail.com>
In-Reply-To: <200708160910.14095.lists@jnielsen.net>
References:  <00b601c7e003$fb1e0200$6501a8c0@GRANT> <200708160910.14095.lists@jnielsen.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/16/07, John Nielsen <lists@jnielsen.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3a386af20708160720x293bef5cya2cd41cebdf79c63>