Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have centos server. I would like to take the server and install it to another empty server. what is the simplest way to do it?

share|improve this question
add comment

3 Answers 3

Over a network

dd if=/dev/hda | ssh username@backupserver.fqdn \
"dd of=/directory_of_backups_on_ssh_server/backupfile.iso"

Modify to suit.

Stolen from: http://karlherrick.com/dev/2008/09/12/dd-backups-over-ssh/

share|improve this answer
    
how do I restore the iso file to a new server? –  edotan Apr 2 '11 at 14:54
    
Do you have physical access, or network access? –  JeffG Apr 3 '11 at 23:59
add comment

You can take a look and see if Clonezilla may work for you:

http://clonezilla.org/

Some restrictions depending on if you have software RAID or not and a few others. Definitely good to look into though.

share|improve this answer
add comment

if you don't have any custom code (ie everything was installed using yum), you can install centos on a new box, and then install everything in /var/log/rpmpkgs.

After that's done, copy over your config files & ssh key form /etc, then your data.

Change the IP of your old server to an unused one, bounce the new server, make sure it comes up with the right IP, and check everything.

It takes a few steps this way, but it's all very straightforward.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.