LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Backup of RHEL server (https://www.linuxquestions.org/questions/linux-general-1/backup-of-rhel-server-470069/)

RajendraKumar 08-02-2006 08:19 AM

Backup of RHEL server
 
Dear All,
I want to take backup of my RHEL server so that in case any fault I can replace all setting correctly.

I am using squid,nis,samba on it.

Thanks All,
Please give me suggestion for that.
Thanks Again,

Rajendra

homey 08-02-2006 11:37 AM

I find that cpio is great for doing a "live" system backup.

For example: To backup my Fedora system, I would boot into FC5 and save a backup image onto another hard drive partition ...
Code:

(cd /; find . -xdev | cpio -voc > /mnt/backup/linux.cpio.gz)
Now the restore operation kind of assumes that your system has been hosed. Therefore, you need to do the restore from a livecd or another system which is still working.
For example: To restore my FC5 to /dev/sda1 ...
Code:

mkfs.ext3 /dev/sda1
mkdir /mnt/mudd
mount /dev/sda1 /mnt/mudd
(cd /mnt/mudd; cpio -vicdm < /mnt/backup/linux.cpio.gz)

I also find partimage to work very nicely for system backup/restore.


All times are GMT -5. The time now is 04:27 PM.