From owner-freebsd-questions@FreeBSD.ORG Fri Oct 25 13:04:34 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3944E79F for ; Fri, 25 Oct 2013 13:04:34 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ECC412505 for ; Fri, 25 Oct 2013 13:04:33 +0000 (UTC) Received: from [89.204.135.78] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1VZh3w-0008FS-1I; Fri, 25 Oct 2013 15:04:24 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id r9PD4Lwi001977; Fri, 25 Oct 2013 15:04:22 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id r9PD4KSd001976; Fri, 25 Oct 2013 15:04:20 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Fri, 25 Oct 2013 15:04:20 +0200 From: Matthias Apitz To: Warren Block Subject: Re: tool for checking integrity of a file system DUMP Message-ID: <20131025130419.GA1969@tiny.Sisis.de> References: <20131025082352.GA15369@sh4-5.1blu.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 10.0-CURRENT r235646 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.135.78 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 13:04:34 -0000 El día Friday, October 25, 2013 a las 06:59:56AM -0600, Warren Block escribió: > On Fri, 25 Oct 2013, Matthias Apitz wrote: > > > I'm using dump(8) for backups. Is there some tool to check the integrity > > of the produced dump? A 'restore -t -f ....' seems to look only into the > > header of the dump and not reading the full file... > > > > Ideally would be a binary comparisation of the files in the dump with > > the original files on disk, ofc directly after the dump done in single > > user mode. > > It may be possible to use mtree(8)'s cksum to compare the original files > with those in the backup. Sorry for not beeing precise enough: I did not want to restore the files to disk, just reading the dump and comparing with the original. Would be nice if restore would have an option for this; -N is not strong enough I think. matthias -- Sent from my FreeBSD netbook Matthias Apitz, , http://www.unixarea.de/ f: +49-170-4527211 UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5