From owner-freebsd-questions@FreeBSD.ORG Wed Jan 21 02:41:42 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 13014220 for ; Wed, 21 Jan 2015 02:41:42 +0000 (UTC) Received: from mail-ie0-x22d.google.com (mail-ie0-x22d.google.com [IPv6:2607:f8b0:4001:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CB69D2F7 for ; Wed, 21 Jan 2015 02:41:41 +0000 (UTC) Received: by mail-ie0-f173.google.com with SMTP id tr6so10143124ieb.4 for ; Tue, 20 Jan 2015 18:41:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=Vpn2EpKKK57xBohzoPPONemJyKqor/eXARHicsK0mK4=; b=0InlMlKQVo9A59OjyvUnqonAHwjbI5sT5bvIW2LB2DuH0hHJoZVogD3k+jOdXQG9Xk ugDEmR5Q1dtgYluYBq8GbvFAtDUFIMdvAUefceB4AsYsmQAH1oSSLTIo7PiOcA9c5Go+ FAL2trqzgINeuGMEOGfqym//5yOJQvG7LVJVaeLjBy3pWRhP8xnJev3rpp+mEXvgTkW+ Pgvwlt10+1JSndpVoJvWlE/Yh4VpgpXrIaVurglBB7ynDsfiuH4eHiBv75KVsFu6arao MNfUB0H6FVm7rwzb4P7qGsS7XWwYipx7RoVClZmmG2yg4wT348Tw7lvO8KP+l2KS3ija WlpQ== MIME-Version: 1.0 X-Received: by 10.50.44.69 with SMTP id c5mr1136329igm.18.1421808100943; Tue, 20 Jan 2015 18:41:40 -0800 (PST) Sender: christopher.maness@gmail.com Received: by 10.36.122.212 with HTTP; Tue, 20 Jan 2015 18:41:40 -0800 (PST) In-Reply-To: <20150120190321.GB57651@slackbox.erewhon.home> References: <20150120190321.GB57651@slackbox.erewhon.home> Date: Tue, 20 Jan 2015 18:41:40 -0800 X-Google-Sender-Auth: qYaVr44g--nUloO8ugXbMdQ-dvY Message-ID: Subject: Re: Dump/Restore for system migration From: Chris Maness To: Chris Maness , "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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: Wed, 21 Jan 2015 02:41:42 -0000 On Tue, Jan 20, 2015 at 11:03 AM, Roland Smith wrote: > 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 > usually > fix it. > > Roland > -- > 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) > Awesome, Roland. That is perfect. That would definitely get all of the missed files. However, I have never been able to setup a direct login with root. I think I would need that to use rsync as root. Thanks, Chris