From owner-freebsd-questions@FreeBSD.ORG Tue Jan 20 19:03:31 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A1B4E8F3 for ; Tue, 20 Jan 2015 19:03:31 +0000 (UTC) Received: from lb2-smtp-cloud6.xs4all.net (lb2-smtp-cloud6.xs4all.net [194.109.24.28]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 37018BE6 for ; Tue, 20 Jan 2015 19:03:30 +0000 (UTC) Received: from slackbox.erewhon.home ([83.162.243.5]) by smtp-cloud6.xs4all.net with ESMTP id iK3M1p00A07iGuj01K3Nq3; Tue, 20 Jan 2015 20:03:29 +0100 Received: by slackbox.erewhon.home (Postfix, from userid 1001) id 78D4C12418; Tue, 20 Jan 2015 20:03:21 +0100 (CET) Date: Tue, 20 Jan 2015 20:03:21 +0100 From: Roland Smith To: Chris Maness Subject: Re: Dump/Restore for system migration Message-ID: <20150120190321.GB57651@slackbox.erewhon.home> Mail-Followup-To: Chris Maness , "freebsd-questions@freebsd.org" References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NDin8bjvE/0mNLFQ" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2015 19:03:31 -0000 --NDin8bjvE/0mNLFQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 19, 2015 at 10:50:28AM -0800, Chris Maness wrote: > I have used dump/restore for system migration a couple of time and noticed > it is pretty good, but every once in a while it will miss or corrupt a > file. Is there a better way to do this? I would imagine having a system > mounted r/o would help, but this is not always possible. Nevertheless this is the best way to go. Especially if you use UFS with journaled soft-updates (which is the default now, IIRC) where you cannot use snapshots. If I want to dump the filesystems on a machine, I use init(8) to go so runlevel 1 (single user mode), where the root fs is mounted r/o and the rest is unmounted. I mount /tmp, and dump the rest of the filesystems to files in /tmp. That procedure has never failed for me. > Is there a way to > check the deltas between systems manually after migration to see if any > files need to be merged or copied. I would imagine the files that are in > jeopardy are ones that are being written to while the dump is taking > place. I had a file the keeps track of rss feeds end up missing on the > target system. For copying files between running systems, I tend to use rsync(1). If anything was being modified during the first run, a second run will usua= lly fix it. Roland --=20 R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0) --NDin8bjvE/0mNLFQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABAgAGBQJUvqZ5AAoJEED21dyjijPgcegP/1WlwkfSBRNHh3kyvP4h3/GX UzASsVKkZ5CqJs+rr/95u++LinwFxNJJM5n5ndTIjCYG8jp00drJGxg34M7z0o6R PHfL7Dmlr+w6gFqw+FRciph7kE2MK/3bbNmUTV05/szlL6hLpegkRCYeKUZWxGP3 +DgyOyj3oMyt0rUm+RorjmJfB9Y69L9qtrA5A5C+SWg6j2s1BLbbLq+qn4gMv5L+ AWsxCs3PYhCsjd5BlNH58AKf/UOo2lnIa3bWxrwuRrmbUZl4rz4Mj8tz/UHmRTI8 MSpYJ9J2eUQ34FJNTPsd7oYhHawzlPurbnkzI1sMcJ0MWHmaH5PyWEQhKbTM1bxM IOIajBRvxzIryMIeRaRHji42NxRzJKRgf+a6oZA03xoILdrZlZu75JcXn8umFPKQ 247Uq7Yio2Mv/60KUVZXs8WstSi0T9xqQqtmAdtRo/nW1+gxFzG7LuPowDDRGST9 J20QTMGjPiTN7W6Ac0SPtqj4jFPdbjygDVm7dTy3mPyXHs1uDX+uAwPTDRfuhl2d XxKels5bOpetUyNrmeoer2KNdt3smyg0FgcVdVboJF8lOTb8gZQdzNlTmIu81r7R 86xl2jdJ2tn03IPeGpwaVWq98+65igsn4yPdWFUbjLYsoy6I6zuO0mQOguxEQTFG 9hq6oJnwBgK4rXdQLoiG =fAMB -----END PGP SIGNATURE----- --NDin8bjvE/0mNLFQ--