Remote Tape Drive Backup
2010.05.11 11:07
원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어
Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
본문 : http://www.ischo.net -- 조인상 //시스템 엔지니어
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remote Tape Drive Backup
1. .rhosts 과 /etc/hosts 에 Remote 접속에 가능하도록 등록한다.
# vi .rhosts
ns root
mail root
# vi ./etc/hosts
192.168.0.1 ns
192.168.0.2 mail
2. Tar Backup
# tar –cvf- 파일명 | rsh ns “dd of=/dev/rmt0”
3. mksysb Backup
주의) Booting 가능 이미지를 가지지 않음
# rm -f /tmp/pipe
# mkfifo /tmp/pipe
# mksysb /tmp/pipe & dd if=/tmp/pipe |rsh ns "dd of=/dev/rmt0"
4. savevg backup
# rm -f /tmp/pipe
# mkfifo /tmp/pipe
# savevg -i -f /tmp/pipe datavg & dd if=/tmp/pipe | rsh ns "dd of=/dev/rmt0"
Savevg restore
# rm -f /tmp/pipe
# mkfifo /tmp/pipe
# rsh ns "dd if=/dev/rmt0" < /dev/null > /tmp/pipe & restvg /tmp/pipe
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remote Tape Drive Backup
1. .rhosts 과 /etc/hosts 에 Remote 접속에 가능하도록 등록한다.
# vi .rhosts
ns root
mail root
# vi ./etc/hosts
192.168.0.1 ns
192.168.0.2 mail
2. Tar Backup
# tar –cvf- 파일명 | rsh ns “dd of=/dev/rmt0”
3. mksysb Backup
주의) Booting 가능 이미지를 가지지 않음
# rm -f /tmp/pipe
# mkfifo /tmp/pipe
# mksysb /tmp/pipe & dd if=/tmp/pipe |rsh ns "dd of=/dev/rmt0"
4. savevg backup
# rm -f /tmp/pipe
# mkfifo /tmp/pipe
# savevg -i -f /tmp/pipe datavg & dd if=/tmp/pipe | rsh ns "dd of=/dev/rmt0"
Savevg restore
# rm -f /tmp/pipe
# mkfifo /tmp/pipe
# rsh ns "dd if=/dev/rmt0" < /dev/null > /tmp/pipe & restvg /tmp/pipe