From owner-freebsd-questions@FreeBSD.ORG Tue Jan 29 09:23:32 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 1400516A420 for ; Tue, 29 Jan 2008 09:23:32 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id ABFE913C4EA for ; Tue, 29 Jan 2008 09:23:31 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from epia-2.farid-hajji.net (epia-2 [192.168.254.11]) by fw.farid-hajji.net (Postfix) with ESMTP id 31B5FE02B3; Tue, 29 Jan 2008 10:23:30 +0100 (CET) Date: Tue, 29 Jan 2008 02:23:29 -0700 From: cpghost To: C Thala Message-ID: <20080129092329.GA77994@epia-2.farid-hajji.net> References: <77647f500801281525n534573d6ub3b1794eb947ffbd@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <77647f500801281525n534573d6ub3b1794eb947ffbd@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd Subject: Re: restore(1) dumpfile to directory rather than filesystem -- possible? -- SOLVED 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: Tue, 29 Jan 2008 09:23:32 -0000 On Mon, Jan 28, 2008 at 06:25:32PM -0500, C Thala wrote: > > However, I don't have an actual live filesystem available to test this > > on....can I just restore to a directory on an existing fs to be sure? > > Is this even possible? > > Never mind...to answer my own question, I had to use the "add" feature > in the interactive shell, i.e.: > > $ restore -i -f dump > restore > add etc > restore > extract If you want to test the *entire* dump file, you can also use -r. Just make an empty directory somewhere, cd(1) into it, and restore the dump there: % mkdir /path/to/new/dir % cd /path/to/new/dir % restore -r -f /path/to/old/dumpfile -cpghost. -- Cordula's Web. http://www.cordula.ws/