Link to home
Start Free TrialLog in
Avatar of sysautomation
sysautomation

asked on

Replicate Server

We have a Dedicated server running Centos 5.x and have installed so many things over a period of time. Don't even have complete logs what was installed and any configuration changes made.
We want to copy the exact contents of this machine to another machine having different processor etc.
Is there some easy way doing it?
Both the machines are hosted with different dedicated hosting providers (unmanaged).
Avatar of Manfred Bertl
Manfred Bertl
Flag of Germany image

I'd do a full copy of the required partition with a clone tool (like CloneZilla or partclone).
Have you looked into Virtualisation ?
ASKER CERTIFIED SOLUTION
Avatar of madunix
madunix

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
perform rsync is the best way (site-to-site)

TY/SA
You should have gotten identical systems or just moved the old system over if you just want to clone.

I 2nd the virtualization call if you have no idea what you're running on your system.

Cloning might work, but if your new hardware has enough of a mismatch, the system might segfault upon boot.

rsync is good for data or when your systems are identical, but not good for running binaries and library dependencies if they're not. You could cause serious problems.

You should eventually start a new system instead of cloning old Centos5 and slowly install each package and copy the configurations over.  I bet some of your packages are outdated and may have stay outdated because of old code that you no longer maintain.  Keeping an old server going because you don't know what's on it is destined for major catastrophe some day.
"rpm -qa" will give you a complete list of packages installed but only the copy/cloning above will give you the config as well, however if this is a different processor inside a different network, so configuration will be different anyway
Avatar of madunix
madunix

If you just want to copy the contents of a file system tree to another location, the following command can help you:
# cp -ar <source directory> <destination directory>