Linux: System backup system

Start rescue

1.Check and Note backup start time

# date

2. Insert Red Hat Enterprise Linux 4 AS(Update5) installation CD into CD-ROM

3. Reboot

# shutdown -r now
4. After reboot, type “linux rescue” (start rescue) and press enter key in prompt on the screen below.

boot:linux rescue
5. A screen to choose language is displayed. Choose “English”. Press tab key to move focus onto “OK”, and press enter key.

6. A screen to choose keyboard appears. Choose “Your Keybord Type”.

7. A screen to specify if network is used is displayed. Choose “No”.

8. A screen to specify if existing system image should be mounted on /mnt/sysimage appears. Choose “Skip”.

9. Shell is executed with below message output and prompt is displayed.

When finished please exit from the shell
and your system will reboot
-/bin/sh-3.00#

System backup

a. Check target host

1. Mount /dev/sda1

mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1

If root partition resides on LVM
scan for VGs in system
# lvm vgscanactivate VGs
# lvm vgchange -aydisplay VGs
# lvm lvs
Make and mount the directories
# mkdir -p /mnt/vg_{root,opt}
#mount /dev/VolGroup00/LogVol00 /mnt/vg_root
#mount /dev/VolGroup00/LogVol01 /mnt/vg_opt

2. Check host name

# cat /mnt/sda1/etc/sysconfig/network
HOSTNAME=****(or ****)
Check message above is displayed

b. Copy shells for backup
1. Copy shells for back up to /tmp
#cp –p /mnt/sda6/backup/BAK_***backup.sh /tmp

2. Unmount /dev/sda1
#umount /dev/sda1 /mnt/sda1
c. System backup

1. Insert tape for backup (original) into tape drive

2.Execute shell for backup
#cd /tmp
#./BAK_***backup.sh

3. When backup is completed, press eject buttom and remove the tape from drive
4. Insert tape for backup (copy) into tape drive
5. Execute shell for backup

#cd /tmp
#./BAK_***backup.sh

7. When backup is completed, press eject button and remove the tape from drive

d. System restart

1. Take Red Hat Enterprise Linux 4 AS(Update7) installation CD out from CD-ROM drive
2. Restart system

#exit

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.