From owner-freebsd-questions@FreeBSD.ORG Wed Apr 9 19:34:46 2008 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 E4A56106566C for ; Wed, 9 Apr 2008 19:34:46 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by mx1.freebsd.org (Postfix) with ESMTP id 79E178FC12 for ; Wed, 9 Apr 2008 19:34:46 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id m39JYdQa055620; Wed, 9 Apr 2008 21:34:40 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 5C0F2B82D; Wed, 9 Apr 2008 21:34:39 +0200 (CEST) Date: Wed, 9 Apr 2008 21:34:39 +0200 From: Roland Smith To: Dick Hoogendijk Message-ID: <20080409193439.GB2998@slackbox.xs4all.nl> Mail-Followup-To: Dick Hoogendijk , freebsd-questions@freebsd.org References: <20080409161645.GA96773@slackbox.xs4all.nl> <20080409203828.00003114@westmark> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7iMSBzlTiPOCCT2k" Content-Disposition: inline In-Reply-To: <20080409203828.00003114@westmark> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Back up files... 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: Wed, 09 Apr 2008 19:34:47 -0000 --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 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--