Date: Tue, 13 Jan 2009 10:45:32 -0500 From: Jerry McAllister <jerrymc@msu.edu> To: perryh@pluto.rain.com Cc: fbsdlilly@gmail.com, freebsd-questions@freebsd.org Subject: Re: Mounting a partition from freebsd 6.2? Message-ID: <20090113154532.GB23181@gizmo.acns.msu.edu> In-Reply-To: <496c4b81.Lglr2e%2B9%2BRgvmrp3%perryh@pluto.rain.com> References: <f151ba00901111006t6caf9d96mf269dc8a7a8eb071@mail.gmail.com> <496ab572.u2DH1w2B2JAcv4M%2B%perryh@pluto.rain.com> <f151ba00901121315g6011ad08m2b183d5b3160de52@mail.gmail.com> <20090112215439.GA19760@gizmo.acns.msu.edu> <496c4b81.Lglr2e%2B9%2BRgvmrp3%perryh@pluto.rain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 13, 2009 at 12:06:25AM -0800, perryh@pluto.rain.com wrote: > > > is there anything specific I should look at for switches or > > > just dump /dev/ad2s1 | restore? > > > > Use: dump 0af - | restore -rf - > > It would be advisable to read the dump and restore manpages first. > > In 6.1, and I suspect still in 6.2, "restore -r" should be used only > when restoring onto an empty filesystem or loading an incremental on > top of such a full restore. If the destination (current directory) > is not the root of an empty filesystem, you want "restore -x" or > "restore -i" instead. I think he was talking about a full filesystem restore in which case 'restore -rf' would be correct. The man page actually is a tiny bit misleading on the -r. You can use it to restore the whole filesystem in any dedicated space including any directory. But with -r you just cannot specify which part of the filesystem you want to restore, such as a particular directory or file. For that you will need -xf which will work for a full filesystem too in most cases. ////jerry > _______________________________________________ > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090113154532.GB23181>