From owner-freebsd-questions@FreeBSD.ORG Tue Jan 29 16:50: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 9241016A417 for ; Tue, 29 Jan 2008 16:50:53 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 5401D13C46B for ; Tue, 29 Jan 2008 16:50:51 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id m0TGlnSM073444; Tue, 29 Jan 2008 11:47:49 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id m0TGlnTd073443; Tue, 29 Jan 2008 11:47:49 -0500 (EST) (envelope-from jerrymc) Date: Tue, 29 Jan 2008 11:47:49 -0500 From: Jerry McAllister To: Mel Message-ID: <20080129164749.GB73347@gizmo.acns.msu.edu> References: <77647f500801281525n534573d6ub3b1794eb947ffbd@mail.gmail.com> <20080129092329.GA77994@epia-2.farid-hajji.net> <200801291529.50360.fbsd.questions@rachie.is-a-geek.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200801291529.50360.fbsd.questions@rachie.is-a-geek.net> User-Agent: Mutt/1.4.2.2i Cc: C Thala , cpghost , freebsd-questions@freebsd.org 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 16:50:53 -0000 On Tue, Jan 29, 2008 at 03:29:49PM +0100, Mel wrote: > 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. No. restore -r is the correct one to use if you want to restore the whole dump in to a directory. You can also use restore -x, but that is generally intended to restore named files/directories. If you want to do that, it is often easier doing a restore -i which the OP mentioned doing above. ////jerry > -- > Mel > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"