1 |
On 09/11/2013 12:55 PM, Stefan G. Weichinger wrote: |
2 |
> Am 09.09.2013 08:30, schrieb Michael Hampicke: |
3 |
> |
4 |
>> Tar with permission preservation is fine. Just exlude everything |
5 |
>> in dev/sys/proc/tmp as you said. But make sure, that these |
6 |
>> directories are in your tar file, it does not matter if they are |
7 |
>> empty, but they have to exist in order to boot proplery. |
8 |
> Sorry if I am maybe a bit OT (am I?): |
9 |
> |
10 |
> I often cloned systems from or into VMs by booting both systems with |
11 |
> live-CDs, mounting their disks and "rsync -av" the root-fs over ... |
12 |
> sure, taking care of dev/sys/proc/tmp does not hurt ... |
13 |
> |
14 |
> After the rsync maybe some fstab-editing, checking grub-config ... but |
15 |
> that worked several times already ... (OK, not automated ... but |
16 |
> sufficient if I prepare a server inside a VM and then apply that image |
17 |
> once). |
18 |
> |
19 |
> S |
20 |
> |
21 |
> |
22 |
personally i like to add the clone-to disk as a mirror into my lvm, then |
23 |
once it is synced, i stop service such as databases, split the mirror |
24 |
and then start databases again. |
25 |
this lets me import the lvm to the new location practically identical, |
26 |
of course fstab etc need changing at the other end |