View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 04-24-2008, 01:50 PM   #1
LQ Newbie
Registered: May 2007
Posts: 5

Rep: Reputation: 0
RHEL 5 Complete Restore from backup to identical server

Hi all,
Although I think I have some idea on how to do this I figured I would post this question here to get some input. Ask first, then do... it usually works out better

What I have:
I have two identical servers running RHEL5. Server one server is my main db server and a complete backup is done regularly. The second server was purchased for a backup server and to manage a few additional tasks.

What I would like to do:
I would like to take the complete backup of server one and restore it to server two.

I am guessing that I will have to do something like this:

Boot server1 into single user mode. (so the db isn't open).

Backup the system using cpio to file, something like 'find path -depth -print | cpio -ov | gzip -c > /exportfs/archive.cpio.gz'
I'm also not sure if I need to use the 'B' or 'm' options.

Copy the file to server2.

Boot server2 into single user mode.

Make sure server2 is not plugged into the network avoid dup ip addresses, etc. and probably cause a bunch of problems with the live server1.

Restore the file using something like 'cpio -i | gunzip -c archive.cpio.gz'

Rename the restored system to server2

Thanks for any input.
Old 04-25-2008, 07:28 AM   #2
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 572

Rep: Reputation: 56
I found information from here very useful.

It discusses using a LiveCD to boot from, a NFS remote share to backup to, and using "tar" rather than CPIO. I'm sure you'll be able to devise a suitable strategy using the info provided.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Create a backup server with Restore LXer Syndicated Linux News 0 02-19-2008 04:20 PM
How can I take Backup of my RHEL server RajendraKumar Linux - Enterprise 2 08-11-2006 02:14 PM
Backup of RHEL server RajendraKumar Linux - General 1 08-02-2006 11:37 AM
Migrating RHEL 3 to new (identical) chassis metrognome Red Hat 2 12-08-2005 07:28 PM
How does one restore X backup for screwed up X server? theonlydrew Linux - Newbie 1 05-27-2004 05:54 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration