Re: Cloning a linux box

Peter Smith <[email protected]> Tue, 06 May 2003 09:28:30 -0500
Newsgroups gmane.linux.redhat.migration
Message-ID <[email protected]>
I do this all the time.  What I do is partition the space on the new 
system exactly like the first system, but where swap should be I 
install, instead, a bare Redhat in ext3.  After booting this bare Redhat 
install from what will ultimately be the swap partition, I then SSH/TAR 
the original system into the other partitions.

ssh root@cloned_system 'tar c / --exclude=/mnt --exclude=/proc' | tar xv 
--preserve

If you only have one mounted filesystem, you can easily tack on 
'--one-file-system' into the 'tar c' line, that would be better.  You 
could probably use cpio or rsync as well.  YMMV.  This has worked so 
well for me in the past that I just can't seem to get away from it. 
 Once you have an in-place copy on the new system, I like to 'chroot' to 
it and fiddle with installing Grub, etc.  After you get the new system 
booting from the root partition (the copy) then just 'mkswap <part>' on 
your temporary Redhat install and reboot.  Pretty easy.

Peter


Ian Young wrote:

>Hi,
>
>A month or two back we installed our first CAM seat running on Linux. We now have another computer that  we wish to set up identically. Is there a way I can clone one computer to the other? We're running Redhat 8.0 and the machine specs are identical.
>
>Best Regards
>
>Ian Young
>
>Graphic PLC
>
>Tel. +44 (0) 1363 774874
>Fax. +44 (0) 1363 775753
>Website: www.graphic.plc.uk
>
>This e-mail and any files transmitted with it are confidential
>and intended for the exclusive use of the addressee only.
>If you are not the intended recipient, you should not use the
>contents nor disclose them to any other person and you should
>immediately notify the sender and delete the email. The statements
>and opinions expressed here may not represent those of the company.
>
>Graphic PLC, registered in England no. 1036230 England.
>Registered office: Graphic PLC, Down End, Lords Meadow Industrial
>Estate, Crediton, Devon, EX17 1HN, England.
>
>
>
>_______________________________________________
>Redhat-migration-list mailing list
>[email protected]
>https://listman.redhat.com/mailman/listinfo/redhat-migration-list
>  
>