From owner-freebsd-questions@FreeBSD.ORG Thu Dec 17 08:56:07 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4459106566B for ; Thu, 17 Dec 2009 08:56:07 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id C708C8FC1E for ; Thu, 17 Dec 2009 08:56:06 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id nBH8u110037015; Thu, 17 Dec 2009 08:56:01 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk nBH8u110037015 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1261040161; bh=l2peFQMTCznMs0NYmPhZQnQsZoFjEjrT+nkCcfB8UY8=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4B29F220.1050301@infracaninophile.co.uk>|Date:=20T hu,=2017=20Dec=202009=2008:56:00=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20091129)|MIME-Vers ion:=201.0|To:=20n=20dhert=20|CC:=20freebsd-ques tions@freebsd.org|Subject:=20Re:=20snapshot=20rsync=20dump/restore |References:=20<8021a2660912170003t3e01f4ean396908745c411740@mail. gmail.com>|In-Reply-To:=20<8021a2660912170003t3e01f4ean396908745c4 11740@mail.gmail.com>|X-Enigmail-Version:=200.95.6|Content-Type:=2 0multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D" application/pgp-signature"=3B=0D=0A=20boundary=3D"------------enig 033418E749FED86ACC873BE0"; b=Bu7ehuqdjBbSjwX9bKd2s0CermJQd/fvvqS7emyjaN1YiBMYdk15bZdj9EVuhMKtz Yll82C+Cg7Yud7PNQ1Y1cCuDnei/esdSNq3rIjXEnhLyx5nK29n5Imv+L2kbUI3QDG Nw1VESdQvAfGqcDJTzJCeFIgyNm/ESOnbjKDWBwU= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4B29F220.1050301@infracaninophile.co.uk> Date: Thu, 17 Dec 2009 08:56:00 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20091129) MIME-Version: 1.0 To: n dhert References: <8021a2660912170003t3e01f4ean396908745c411740@mail.gmail.com> In-Reply-To: <8021a2660912170003t3e01f4ean396908745c411740@mail.gmail.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig033418E749FED86ACC873BE0" X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: snapshot rsync dump/restore X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2009 08:56:07 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig033418E749FED86ACC873BE0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable n dhert wrote: > I want to clone a FreeBSD system on another system. > Say, Mondaymorning I use the dump(8) to make dumpfiles of all filesyst= ems > (dumpofroot.dmp, dumpofvar.dmp, ...tmp.dmp, ...usr.dmp, ...home.dmp ) o= n an > external USB disk. > The original system keeps running. > Then Wednesday I setup FreeBSD on the new system, and use restore(8) to= put > the contents of my dumpfiles in the filesystems of that clone system. > Then I still need to have the changes occured during Mondaymorning till= > Wednesdayafternoon on the original system, to be put in some way on the= > clone system, so that these are not lost. > I was told one could do this using rsync and by using a snapshot it wou= ld > even be faster (?) > Is rsync save regarding soft-links ? > How exactly would one best proceed? Presumably you did a level 0 dump to make your initial copy? Did you happen to use the -u flag to dump? ie. update /etc/dumpdates? If so, then you can just do an incremental dump of everything that has changed s= ince. (This is standaard dump(1) functionality). So long as the filesystems on= the second machine haven't changed in the meantime, you should be able to= =20 just restore the incremental dump on top of the original full backup to get things pretty much in synch. (Although watch out for files that were deleted between the full and the incremental dumps). If you didn't update /etc/dumpdates, then you can manually edit /etc/dump= dates to achieve the same result. Failing that, yes, you can use rsync to synchronise the filesystem state.= You don't have to snapshot the original system, but it will help to get y= ou a consistent point-in-time copy of the original server. To create a snap= shotted and mounted directory tree see the section on 'snapshot' in mount(8). If you have several filesystems to rsync to the other machine, you should= snapshot all of them and mount them one over the other in the same relati= on as the original filesystems. Then you can rsynch the whole snapshotted dire= ctory tree to your new server in one command. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig033418E749FED86ACC873BE0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAksp8iEACgkQ8Mjk52CukIwO6QCdEerMALNhg0/2a9ljBjt0zNUV KgcAnjIRLmspAXpngXVYYHFvruzpNYfB =RIqp -----END PGP SIGNATURE----- --------------enig033418E749FED86ACC873BE0--