From owner-freebsd-questions@FreeBSD.ORG Tue Jan 29 14:29:53 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 2CB6916A46E for ; Tue, 29 Jan 2008 14:29:53 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id D5ADF13C468 for ; Tue, 29 Jan 2008 14:29:52 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 94EB21CC90; Tue, 29 Jan 2008 05:29:51 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Tue, 29 Jan 2008 15:29:49 +0100 User-Agent: KMail/1.9.7 References: <77647f500801281525n534573d6ub3b1794eb947ffbd@mail.gmail.com> <20080129092329.GA77994@epia-2.farid-hajji.net> In-Reply-To: <20080129092329.GA77994@epia-2.farid-hajji.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801291529.50360.fbsd.questions@rachie.is-a-geek.net> Cc: C Thala , cpghost 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 14:29:53 -0000 On Tuesday 29 January 2008 10:23:29 cpghost wrote: > 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 man restore: -r Restore (rebuild a file system). This will recreate the filesystem, meaning, the files extracted will have identical inode numbers as on the original filesystem. Thus, you will very likely run into problems when using this mode. You're looking for -x, which extracts a dump file, similar to a tar, restoring ownership, file times and so on, but leaving the inode numbers up to the OS. restore -x is essentially what OP did interactively. -- Mel