From owner-freebsd-questions@FreeBSD.ORG Thu Oct 6 15:28:05 2005 Return-Path: X-Original-To: freebsd-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 8E2A516A426 for ; Thu, 6 Oct 2005 15:28:05 +0000 (GMT) (envelope-from freminlins@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id C421643D55 for ; Thu, 6 Oct 2005 15:28:04 +0000 (GMT) (envelope-from freminlins@gmail.com) Received: by nproxy.gmail.com with SMTP id x4so178543nfb for ; Thu, 06 Oct 2005 08:28:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=ciXGMzetX2Wzmbu/ljSzlGrnuqNjzkfVF5KDswB7keFmxHDZXGOF5X6riVJ0utqrDT67wPIWLTImMBnYZK0WplsshheF9/ubY07v+7ON8Tq2Xt4xc9xSD2sH9D78fNA+3ZJp1pC+NI71Q60qOApaD8DdNibwPK/jK1BCe4URZ1Y= Received: by 10.49.5.7 with SMTP id h7mr123372nfi; Thu, 06 Oct 2005 08:28:04 -0700 (PDT) Received: by 10.48.239.9 with HTTP; Thu, 6 Oct 2005 08:28:04 -0700 (PDT) Message-ID: Date: Thu, 6 Oct 2005 16:28:04 +0100 From: Freminlins To: FreeBSD MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: dump/restore puzzle X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Freminlins List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2005 15:28:05 -0000 I have a puzzling problem with dump and restore. I'm looking to implement a dump and restore pipe to automatically make copy of a file system onto another system completely. I've used / only as an example (because it's small) and I'm not overwriting /. I do the following: 1. Level 0 dump and restore pipe which works as expected frem# dump 0auLf - / | ( restore -rf - ) DUMP: Date of this level 0 dump: Thu Oct 6 16:16:17 2005 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/ad0s1a (/) to standard output DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 54582 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] expected next file 8069, got 818 DUMP: DUMP: 55429 tape blocks DUMP: finished in 19 seconds, throughput 2917 KBytes/sec DUMP: level 0 dump on Thu Oct 6 16:16:17 2005 DUMP: DUMP IS DONE 2. I touch a file, just to make a difference, then do a level 1 dump and restore which works as expected (the new file is extracted). frem# touch /hello frem# dump 1auLf - / | ( restore -rf - ) DUMP: Date of this level 1 dump: Thu Oct 6 16:16:50 2005 DUMP: Date of last level 0 dump: Thu Oct 6 16:16:17 2005 DUMP: Dumping snapshot of /dev/ad0s1a (/) to standard output DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 36 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: DUMP: 35 tape blocks DUMP: finished in less than a second DUMP: level 1 dump on Thu Oct 6 16:16:50 2005 DUMP: DUMP IS DONE expected next file 24550, got 819 3. I remove the file and do another level 1 dump and restore. This doesn't work. frem# rm /hello frem# dump 1auLf - / | ( restore -rf - ) DUMP: Date of this level 1 dump: Thu Oct 6 16:17:08 2005 DUMP: Date of last level 0 dump: Thu Oct 6 16:16:17 2005 DUMP: Dumping snapshot of /dev/ad0s1a (/) to standard output DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 35 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: DUMP: 34 tape blocks DUMP: finished in less than a second DUMP: level 1 dump on Thu Oct 6 16:17:08 2005 DUMP: DUMP IS DONE Incremental tape too high 4. If I then touch another file, this still doesn't work. frem# touch /hello2 frem# dump 1auLf - / | ( restore -rf - ) DUMP: Date of this level 1 dump: Thu Oct 6 16:24:51 2005 DUMP: Date of last level 0 dump: Thu Oct 6 16:23:50 2005 DUMP: Dumping snapshot of /dev/ad0s1a (/) to standard output DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 37 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: DUMP: 36 tape blocks DUMP: finished in less than a second DUMP: level 1 dump on Thu Oct 6 16:24:51 2005 DUMP: DUMP IS DONE Incremental tape too high How can I go about achieving this (ignoring rsync, etc), Thanks, Frem.