LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to clone existing settings to the new RH installation? (https://www.linuxquestions.org/questions/linux-server-73/how-to-clone-existing-settings-to-the-new-rh-installation-929045/)

sluge 02-12-2012 11:55 PM

How to clone existing settings to the new RH installation?
 
Hello! I have installed and setted up RHES 6.2. So, I need to install the new one server and copy all existing settings from old to new one. I mean network settings, user accounts, mount points (HW is the same). Is any way to do it easy or I need to copy every file by hand?

War3zWad|0 02-13-2012 02:23 AM

Quote:

Originally Posted by sluge (Post 4600967)
Hello! I have installed and setted up RHES 6.2. So, I need to install the new one server and copy all existing settings from old to new one. I mean network settings, user accounts, mount points (HW is the same). Is any way to do it easy or I need to copy every file by hand?

The first thing to do is create a kickstart file for the new install. This can be done by copying the kickstart file on the current server.
Code:

/root/anaconda-ks.cfg

Set the initial root password, based on a previously derived encrypted password

rootpw --iscrypted XaacoeGPmf/A <-- replace with your root hash from /etc/shadow

Then install using that kickstart file. Once the installation is done then you can rsync the old server to the new server. From the new server(in the %post% section of your kickstart file) add an rsync command to get all the files over.
Code:


rsync -avPz root@oldserver:/ /

That should copy all of the contents from the old server to the new server.

Then once it is done you will need to restart the machine just to make sure everything copied over correctly.

rosarion 02-16-2012 09:35 PM

g4u - Harddisk Image Cloning for PCs
 
I have done this before, you can try g4u - Harddisk Image Cloning for PCs.
http://www.feyrer.de/g4u/


GOOD LUCK


All times are GMT -5. The time now is 03:44 PM.