From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Jg3nn-0008E5-5q for garchives@archives.gentoo.org; Sun, 30 Mar 2008 20:06:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DCA86E047A; Sun, 30 Mar 2008 20:05:16 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 7B522E047A for ; Sun, 30 Mar 2008 20:05:16 +0000 (UTC) Received: from loonquawl.digimed.co.uk (loonquawl.digimed.co.uk [192.168.1.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.digimed.co.uk (Postfix) with ESMTPSA id 87F462E30EC for ; Sun, 30 Mar 2008 21:05:15 +0100 (BST) Date: Sun, 30 Mar 2008 21:05:11 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Clone a running gentoo machine onto another machine Message-ID: <20080330210511.3421cd0d@loonquawl.digimed.co.uk> In-Reply-To: <47EFEEA6.9080402@gmail.com> References: <47EFEEA6.9080402@gmail.com> Organization: Digital Media Production X-Mailer: Claws Mail 3.3.1cvs45 (GTK+ 2.12.9; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEX///9/OBwcKrgODnFG1FTxxqqqxpxGOBwOnA7/1dQOHBxiVH8OABwOVA4Of3G4cXD8PZSwAAAAAXRSTlMAQObYZgAAAhZJREFUOI2l082L00AUAPAcbLS7isypB4VC8w+Iubl78JDDeAj0UnC91KKIomCL2MEa6CWHQRjYgygLwi4IroQIpSCiu0KlsILOooeuW1vmT1jYHtawsDJOJh/9SHPyQUgyP+a9mZeMovxHqPU0OSimwN2fc4df3Dnzy7iWHL+NMe6xq8nKEEKC7ZvJCbZtEBsPExMMo+cDm61/CppyBtlPZDINCWymimETA0qYzqVCg4Xwe7qEGQJmezO1YR/Og+d2DNM1rtuQ2ZD0ktDDA+zD9HLvbx308eAtZH1C2McJeLrlCtg1h58JcWl1DKhBGR58Mx/+NZ9RfTlOlkVXdt+RfWTVPUS7ur40BtRhePig+cSzqC6iFcFmo3MO752ucWDpmi8xOB0VbmRq3Ltc0Lviao1BMYtKJZ9ra8sCtEshOM5G5r1oMSi2NSqgoMdQVcS/lj1auUXdCVBR4829NUUplconnVc+aEERgJwvAKBas8TpzlkJQRGEXARE5Mve17pKfQj2eIIc6sdjfpHuLMgZQZFswz1eE1EeWT+qj8S4gFUJr91DeV9ZX7e6BQmtYLlu2NDzOUr19iSEJ6aSa3JuLcV93HRXAwD5Eud8W7Q+SIGssJ3gyAfudcOtf4igIjbvy/b34P1GBBkJI3DhMHhfiCArM4kmhKtcjCEcP46+uhM9qKMRyP8ZH/dPSkq8TIPFNJgX/wBV+wZAZEipVgAAAABJRU5ErkJggg== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/V.7s2R07fiZK4vsrdwtMwhl"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: 1f2f12d8-6d77-44e2-95fb-c0638b5ba891 X-Archives-Hash: a3868be94159755a6492f83114b8d29a --Sig_/V.7s2R07fiZK4vsrdwtMwhl Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 30 Mar 2008 15:48:54 -0400, Hal Martin wrote: > You cannot use tar unless you create an exclude file, as it will copy > the contents of /dev and /sys, which means the entire contents of RAM, > and anything that is currently being generated by your devices will be > copied as well. >=20 > Personally, I would use either tar or rsync to do this, however, in > saying that, I have never actually done this with a live system. This is > the tar command I use for copying inactive systems, and it works quite > well. >=20 > (cd /mnt/source; tar cfpl - .) | (cd /mnt/dest; tar xfp -) >=20 > I assume you could just generate an exclude file, and include that in > the first command You don't need an exclude file to avoid /dev and /sys because they are on separate filesystems, so your use of -l takes care of this. Rsync may work, or it may complain that files have changed between building the list and copying them and you'd need to use -x to do the same as -l with tar. Either way, shut down as many services as possible during the copy, particularly anything that uses databases. --=20 Neil Bothwick If you got the words it does not mean you got the knowledge. --Sig_/V.7s2R07fiZK4vsrdwtMwhl Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkfv8noACgkQum4al0N1GQMdOgCgwSAbBBraGfXJFVhUoaIweyZK BeUAn0oqGF+hHoNWJRlyICID1ZDSIZeg =c1Yb -----END PGP SIGNATURE----- --Sig_/V.7s2R07fiZK4vsrdwtMwhl-- -- gentoo-user@lists.gentoo.org mailing list