From owner-freebsd-questions@FreeBSD.ORG Mon Apr 7 13:34:50 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 DF3251065681 for ; Mon, 7 Apr 2008 13:34:50 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (dsl092-078-145.bos1.dsl.speakeasy.net [66.92.78.145]) by mx1.freebsd.org (Postfix) with ESMTP id AD0C28FC1D for ; Mon, 7 Apr 2008 13:34:50 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id 8EF8128477; Mon, 7 Apr 2008 09:34:49 -0400 (EDT) To: "C Thala" References: <77647f500804041120veb5fa52t34e3b7ab1854bd61@mail.gmail.com> From: Lowell Gilbert Date: Mon, 07 Apr 2008 09:34:49 -0400 In-Reply-To: <77647f500804041120veb5fa52t34e3b7ab1854bd61@mail.gmail.com> (C. Thala's message of "Fri\, 4 Apr 2008 14\:20\:13 -0400") Message-ID: <44myo5n5za.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd Subject: Re: restore various level dump files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2008 13:34:51 -0000 "C Thala" writes: > If i have 3 dump(1)-files from a filesystem and restore them via > restore -i -f dump-file, how do I layer them together? > > That is, how do I tell restore that I want to restore a level 0, 1, and 2? > > Do I run "restore -i -f dump-0" and then "restore -i -f dump-1" and > then "restore -i -f dump-2" in that order? > > Is there some way I can tell restore that more than one level is available? > > "restore -i -f dump-0 -f dump-1 -f dump-2" doesn't work. > > If I restore a level 0 and then a level 1, will the level 1 delete > files that were removed when the level 1 was taking (like rsync -a > --delete) or do I get a bunch of stale files lying around? In interactive mode, you are in control of what gets restored, so stale files can definitely get left behind. If you want to take full advantage of backup levels, you're best off doing a full restore on a pristine filesystem, then working with that.