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 1JgnMe-0001e1-Re for garchives@archives.gentoo.org; Tue, 01 Apr 2008 20:45:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 969C0E0CAB; Tue, 1 Apr 2008 20:45:50 +0000 (UTC) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.187]) by pigeon.gentoo.org (Postfix) with ESMTP id 68F73E0CAB for ; Tue, 1 Apr 2008 20:45:50 +0000 (UTC) Received: by rv-out-0910.google.com with SMTP id b22so1282985rvf.46 for ; Tue, 01 Apr 2008 13:45:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=mQ/wlPhrf/UG9/MLIoOpGE8VQ1fSLhAtuvKsquwZlYE=; b=HrxpugK9FENHpbVT/HWdBRsmHe1QGaoJKOJMtbbXwn4xvbuiTPyEg1aDfD5hsquk82xVHJUFqJrEMH9o9tJnG6XwlKcryBcZ+DPFcpvdrT+mLVccJP8sHL8XNcVs6hzItw5ri9V0lwKc9VgQ2M7ZDkw38bA3OXNq7KcmRezDOoY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MfXzRV0DIJ/+BFFI2pGbt01Mttl0p6HtRHzvorOApnPZ7c3yEc9DTyDpN6A6Q2jFefimtj17HVbA4f0buGrZPlPfoS7Cr4RZsnnoKWH7lWpfZLOORsCNbxdc0FtKOiFieVzV4U+TQVNg1nFsnR0Q9JQG4OD5xcBjWWgnCeHUaP4= Received: by 10.140.82.38 with SMTP id f38mr4727252rvb.27.1207082749046; Tue, 01 Apr 2008 13:45:49 -0700 (PDT) Received: by 10.141.212.16 with HTTP; Tue, 1 Apr 2008 13:45:49 -0700 (PDT) Message-ID: <4ef07b8c0804011345x5aca0346hc034d95365a1bb91@mail.gmail.com> Date: Tue, 1 Apr 2008 16:45:49 -0400 From: "Dan Cowsill" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Clone a running gentoo machine onto another machine In-Reply-To: <20080330210511.3421cd0d@loonquawl.digimed.co.uk> 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: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47EFEEA6.9080402@gmail.com> <20080330210511.3421cd0d@loonquawl.digimed.co.uk> X-Archives-Salt: 2adb84ec-fc30-4ec0-b1b5-c3707d4c2206 X-Archives-Hash: a2eb614438db98431fe5a10d0dbaa808 On Sun, Mar 30, 2008 at 4:05 PM, Neil Bothwick wrote: > 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. > > > > 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. > > > > (cd /mnt/source; tar cfpl - .) | (cd /mnt/dest; tar xfp -) > > > > 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. > > > -- > Neil Bothwick > > If you got the words it does not mean you got the knowledge. > Now, correct me if I'm wrong, but I had read that if you don't copy the files in /dev, udev won't mount properly on the machine you're cloning to and all hell will break lose. Also, iirc, I believe I tarred a running machine (including /dev, excluding /sys) and the clone was successful. Any thoughts? -- Dan Cowsill http://www.danthehat.net -- gentoo-user@lists.gentoo.org mailing list