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 1Jg3Ws-0006Fk-8y for garchives@archives.gentoo.org; Sun, 30 Mar 2008 19:49:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0596FE0412; Sun, 30 Mar 2008 19:49:20 +0000 (UTC) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by pigeon.gentoo.org (Postfix) with ESMTP id E73DAE0412 for ; Sun, 30 Mar 2008 19:49:19 +0000 (UTC) Received: by py-out-1112.google.com with SMTP id w53so1673795pyg.25 for ; Sun, 30 Mar 2008 12:49:19 -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:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=zq7AEmZUd/STi63eWYCPEFfxNiFrOS87YawjCKMYV6s=; b=aVlqV0yUw3tokVXyZvGuYjmpeCJx7sAtlZf/qvM3DpQKoBWxeQkBiKoJW9x53wOf/GhuqipUrwsZFoWmI0njBeVEfPobMZdqrArHs6LwD0PsxMKqWuT/d4Q92mFZ8BBK10mbfo0JNscHuWe3rfKquBux26Cn9Hxf2BGn4tq6rVM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=P/oaT5HpgHX/vlc3kMoo4VfD+wQ5yXy0xkoRnwyc+JMPP9eR5LdMp9kufvl9xl6aEgq3KKlIrHnHRNjRbqSZBe1tENWM/4lDqfyagFLWNfwZkJLZXuRa64Z+YgB2O1SiR9fRda4VWThLmKrVRawQamkiAkgssVfC/8l3+4cHIa8= Received: by 10.65.163.8 with SMTP id q8mr11795293qbo.23.1206906559098; Sun, 30 Mar 2008 12:49:19 -0700 (PDT) Received: from ?10.1.1.39? ( [216.106.97.236]) by mx.google.com with ESMTPS id q14sm4381235qbq.33.2008.03.30.12.49.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 30 Mar 2008 12:49:17 -0700 (PDT) Message-ID: <47EFEEA6.9080402@gmail.com> Date: Sun, 30 Mar 2008 15:48:54 -0400 From: Hal Martin User-Agent: Thunderbird 2.0.0.9 (X11/20071125) 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Clone a running gentoo machine onto another machine References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 8b0973e0-b708-4019-ab3d-ab802daa3603 X-Archives-Hash: d66e90105bd57c8e25bba9f3b6f92064 Benyamin Dvoskin wrote: > Hi All , > > I've been wondering how one can clone an entire gentoo system and copy > it to another physical machine , while the original system is still > running ( means , ghost , acronis and other tools that force me to > shutdown the system are not acceptable ) > > So , someone told me to try just "tar" the whole system to the other > machine and "untar" it there. It is possible, that I know, but it is also difficult. > > The question is how can I do that ? what are the correct attributes > and flags ? 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 ('tar cfpl - .') and it *should* work for you. The other way would be to use rsync, which I have less experience using, but should do the job. rsync -avHp --progress / /mnt/dest/ There's a space between / and /mnt/dest, just incase that's unclear... > > Or maybe someone have other ideas ? Again, you'd have to find a way to exclude /dev /sys, and probably another directory or two too, but again, I don't really have any experience copying a live system. I'm sure other learned people on this list will have lots of useful suggestions for you! > > Thanks > > Benyamin -Hal -- gentoo-user@lists.gentoo.org mailing list