From owner-freebsd-questions@FreeBSD.ORG Wed Aug 17 14:02:18 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EF7C16A41F for ; Wed, 17 Aug 2005 14:02:18 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBAAD43D48 for ; Wed, 17 Aug 2005 14:02:17 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 1102 invoked from network); 17 Aug 2005 14:02:17 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail28.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 17 Aug 2005 14:02:17 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id DE4F336; Wed, 17 Aug 2005 10:02:16 -0400 (EDT) Sender: lowell@be-well.ilk.org To: Alexander Shikoff To: questions@freebsd.org References: <20050816144506.GA82838@crow.padonki.org.ua> From: Lowell Gilbert Date: 17 Aug 2005 10:02:16 -0400 In-Reply-To: <20050816144506.GA82838@crow.padonki.org.ua> Message-ID: <441x4sfyqf.fsf@be-well.ilk.org> Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: dump & restore question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2005 14:02:18 -0000 Alexander Shikoff writes: > I maked two dumps of root filesystem with dump(8): > - the first of level 0 (all files) > - the second of level 3 on the next day after level 0 (all files new or > modified since dump of level 0 or level 3) > > Now I'm trying to restore filesystem with restore(8): > cat dump0 | (cd /mnt/ad0s1a && restore -ruyf -) > cat dump3 | (cd /mnt/ad0s1a && restore -ruyf -) > > I'm getting next warning message: > ./sbin/init: cannot create file: Operation not permitted > ... > > And this warning appears for all files with `schg' flag. Makes sense; even if you aren't at a raised securelevel, I'm not sure you'd want restore to modify "unchangeable" files. But then again, one would need some way of handling your situation... In any case, make sure you do this without securelevel. > Question: why the dump of level 3 contains files which were not modified > since dump of level 0? It shouldn't (and doesn't for me). Maybe the inode was changed for some reason?