Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2015 20:03:21 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Chris Maness <chris@chrismaness.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Dump/Restore for system migration
Message-ID:  <20150120190321.GB57651@slackbox.erewhon.home>
In-Reply-To: <CANnsUMESEWsEXyyKwqyrnTMiEEYuExTgD0Z4NBuJF0cYSWDChQ@mail.gmail.com>
References:  <CANnsUMESEWsEXyyKwqyrnTMiEEYuExTgD0Z4NBuJF0cYSWDChQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150120190321.GB57651>