From owner-freebsd-questions@FreeBSD.ORG Wed Nov 14 16:45:30 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 35D27961 for ; Wed, 14 Nov 2012 16:45:30 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id DF0248FC17 for ; Wed, 14 Nov 2012 16:45:29 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id qAEGjN3e054319; Wed, 14 Nov 2012 09:45:23 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id qAEGjMA9054316; Wed, 14 Nov 2012 09:45:23 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 14 Nov 2012 09:45:22 -0700 (MST) From: Warren Block To: Polytropon Subject: Re: ugh. dump / restore problem(s) "Cannot find file dump list" In-Reply-To: <20121114101152.09b34640.freebsd@edvax.de> Message-ID: References: <50A3543E.9000406@dreamchaser.org> <20121114095745.7db0a9e0.freebsd@edvax.de> <1352883668.65811.YahooMailNeo@web126006.mail.ne1.yahoo.com> <20121114101152.09b34640.freebsd@edvax.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Wed, 14 Nov 2012 09:45:23 -0700 (MST) Cc: "freebsd@dreamchaser.org" , FreeBSD Mailing List , Jack Mc Lauren X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 16:45:30 -0000 On Wed, 14 Nov 2012, Polytropon wrote: > On Wed, 14 Nov 2012 01:01:08 -0800 (PST), Jack Mc Lauren wrote: >> There is no - . This is the correct format : restore rf /path/to/dump/files > > Really? The manual at "man restore" mentions: > > restore -r [-dDNuvy] [-b blocksize] [-f file | -P pipecommand] > [-s fileno] > > And in the -r section: > > newfs /dev/da0s1a > mount /dev/da0s1a /mnt > cd /mnt > > restore rf /dev/sa0 > > So it seems that _both_ formats are supported (comparable to > tar). > > One of the (in my opinion) most interesting reference sources > for dump/restore also mentions this format: > > # mount /dev/da0s1 /mnt > # mkdir /tmp/oldvar > # cd /tmp/oldvar > # restore -ruf /mnt/var.dump Yes, -u "unlinks" an existing file before restoring that file, useful for restoring dumps over an existing filesystem. Leave out the -u when restoring to a new filesystem and the restore will go faster. > # umount /mnt And that points out a mistake: /mnt can't be unmounted while it is the PWD. Fixed. > Source: > > http://www.wonkity.com/~wblock/docs/html/backup.html#_em_dump_8_em_em_restore_8_em Thanks!