From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3E84A1381F3 for ; Wed, 11 Sep 2013 14:11:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C689BE0CA0; Wed, 11 Sep 2013 14:11:25 +0000 (UTC) Received: from uberouter3.guranga.net (unknown [78.25.223.226]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B26ADE0AA3 for ; Wed, 11 Sep 2013 14:11:24 +0000 (UTC) Received: from [10.0.0.70] (unknown [31.221.38.50]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by uberouter3.guranga.net (Postfix) with ESMTPSA id 32D1482338 for ; Wed, 11 Sep 2013 15:11:23 +0100 (BST) Message-ID: <52307A06.8060700@thegeezer.net> Date: Wed, 11 Sep 2013 15:11:18 +0100 From: thegeezer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 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] creating an image of the system References: <20130908185125.GA18762@zlug.org> <522D6B00.2050404@hadt.biz> <52305A38.80503@xunil.at> In-Reply-To: <52305A38.80503@xunil.at> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: d1aad743-9eb2-4a6c-8b4e-6f2359fb3fcd X-Archives-Hash: ac7190ad5010a6451ee445e768dbc325 On 09/11/2013 12:55 PM, Stefan G. Weichinger wrote: > Am 09.09.2013 08:30, schrieb Michael Hampicke: > >> Tar with permission preservation is fine. Just exlude everything >> in dev/sys/proc/tmp as you said. But make sure, that these >> directories are in your tar file, it does not matter if they are >> empty, but they have to exist in order to boot proplery. > Sorry if I am maybe a bit OT (am I?): > > I often cloned systems from or into VMs by booting both systems with > live-CDs, mounting their disks and "rsync -av" the root-fs over ... > sure, taking care of dev/sys/proc/tmp does not hurt ... > > After the rsync maybe some fstab-editing, checking grub-config ... but > that worked several times already ... (OK, not automated ... but > sufficient if I prepare a server inside a VM and then apply that image > once). > > S > > personally i like to add the clone-to disk as a mirror into my lvm, then once it is synced, i stop service such as databases, split the mirror and then start databases again. this lets me import the lvm to the new location practically identical, of course fstab etc need changing at the other end