Date: Wed, 9 Apr 2008 21:34:39 +0200 From: Roland Smith <rsmith@xs4all.nl> To: Dick Hoogendijk <dick@nagual.nl> Cc: freebsd-questions@freebsd.org Subject: Re: Back up files... Message-ID: <20080409193439.GB2998@slackbox.xs4all.nl> In-Reply-To: <20080409203828.00003114@westmark> References: <ee9dc2b40804082011o53d4fe88l99f7604711ff30e1@mail.gmail.com> <20080409161645.GA96773@slackbox.xs4all.nl> <20080409203828.00003114@westmark>
next in thread | previous in thread | raw e-mail | index | archive | help
--7iMSBzlTiPOCCT2k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 09, 2008 at 08:38:28PM +0200, Dick Hoogendijk wrote: > On Wed, 9 Apr 2008 18:16:45 +0200 > Roland Smith <rsmith@xs4all.nl> wrote: >=20 > > What I would recommend is to buy a large harddisk with a USB > > connection and use that to store your backups. Make your backups with > > the dump(8) command, and compress the dump using gzip(1). E.g. to > > dump the root partition: > >=20 > > dump -0 -a -C 8 -h 0 -L -u -f - / |gzip > > >/where/to/put/root-0-20080409.gz >=20 > OK. Right. And what is exactly the command for restore? > Something like "gunzip dumpfile.gz | restore rf dumpfile" Close. It's 'gunzip dumpfile.gz | restore -rf -' since you are restoring from standard input.=20 If you just want to restore a couple of files instead of the whole thing, you should use '-i' instead of '-r'. But if you're using '-r', you should make a pristine filesystem with newfs first. Personally I use 'gzip -1' for compression because it's fast. Using bzip2 usually isn't worth it; backups will be a couple of percents smaller but take two to three times as long! The script that I use to make backups of all my UFS partitions can be found on my shell-scripts page under the name 'dodumps', in case anyone is interested: http://www.xs4all.nl/~rsmith/software/scripts.html Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --7iMSBzlTiPOCCT2k Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEUEARECAAYFAkf9Gk8ACgkQEnfvsMMhpyXlQgCY0lQQSp3kDLYxrr8CWHf+hKRW OwCfShllu58V3THjW05chezBOHbutw8= =bTAb -----END PGP SIGNATURE----- --7iMSBzlTiPOCCT2k--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080409193439.GB2998>