Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jan 2008 02:23:29 -0700
From:      cpghost <cpghost@cordula.ws>
To:        C Thala <cthala@gmail.com>
Cc:        freebsd <freebsd-questions@freebsd.org>
Subject:   Re: restore(1) dumpfile to directory rather than filesystem -- possible? -- SOLVED
Message-ID:  <20080129092329.GA77994@epia-2.farid-hajji.net>
In-Reply-To: <77647f500801281525n534573d6ub3b1794eb947ffbd@mail.gmail.com>
References:  <77647f500801281525n534573d6ub3b1794eb947ffbd@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080129092329.GA77994>