http://forums.gentoo.org/viewtopic-t-312817-highlight-backup.html
file : ftp://binkeye.ch/gentoo/mkstage4.sh
* gentoo system을 백업하기 위한 스크립트
일단 파일을 다운 받아서 실행 권한을 주고 실행하면 다음과 같다고 한다.
Backup script v3.5
==================
What do you want to do? (Use CONTROL-C to abort)
Fast (tar.gz):
(1) Minimal backup
(2) Interactive backup
Best (tar.bz2):
(3) Minimal backup
(4) Interactive backup
Please enter your option:
스크립트 내부의 $default_*_list 와 $custom_*_list 변수에 백업을 원하는 디렉토리를
설정해두면 해당 디렉토리를 몽땅 백업한다고....
리스토어 방법은 아래와 같은데
압축을 풀 때 p 옵션을 잊지 말것!!
1. boot off a live-cd and repartition and create filesystems as necessary
2. eventually reboot, using option: gentoo docache
3. umount /mnt/cdrom
4. remove the live-cd and insert the cd with the stage4
5. mount /dev/cdrom /mnt/cdrom
6. mount /dev/hdaX /mnt/gentoo
7. mkdir /mnt/gentoo/boot
8. mount /dev/hdaX /mnt/gentoo/boot
9. tar xzvpf /mnt/cdrom/host-stage4-18.04.2005-custom.tar.gz -C /mnt/gentoo/
or
9. tar xjvpf /mnt/cdrom/host-stage4-18.04.2005-custom.tar.bz2 -C /mnt/gentoo/
10. mount -t proc none /mnt/gentoo/proc
11. mount -o bind /dev /mnt/gentoo/dev
12. chroot /mnt/gentoo /bin/bash
13. env-update
14. source /etc/profileif in need adjust necessary files (/etc/fstab, /boot/grub/grub.conf) and/or install grub
15. emerge sync (rebuild portage tree)
16. exit
17. cd /
18. umount /mnt/cdrom
19. remove backup cd
20. umount /mnt/gentoo/boot
21. umount /mnt/gentoo/dev
22. umount /mnt/gentoo/proc
23 umount /mnt/gentoo
24. Reboot
1. boot off a live-cd and repartition and create filesystems as necessary
2. eventually reboot, using option: gentoo docache
3. umount /mnt/cdrom
4. remove the live-cd and insert the cd with the stage4
5. mount /dev/cdrom /mnt/cdrom
6. mount /dev/hdaX /mnt/gentoo
7. mkdir /mnt/gentoo/boot
8. mount /dev/hdaX /mnt/gentoo/boot
9. tar xzvpf /mnt/cdrom/host-stage4-18.04.2005-custom.tar.gz -C /mnt/gentoo/
or
9. tar xjvpf /mnt/cdrom/host-stage4-18.04.2005-custom.tar.bz2 -C /mnt/gentoo/
10. mount -t proc none /mnt/gentoo/proc
11. mount -o bind /dev /mnt/gentoo/dev
12. chroot /mnt/gentoo /bin/bash
13. env-update
14. source /etc/profileif in need adjust necessary files (/etc/fstab, /boot/grub/grub.conf) and/or install grub, network config
15. emerge sync (rebuild portage tree)
16. exit
17. cd /
18. umount /mnt/cdrom
19. remove backup cd
20. umount /mnt/gentoo/boot
21. umount /mnt/gentoo/dev
22. umount /mnt/gentoo/proc
23 umount /mnt/gentoo
24. Reboot
'운영_설치 > 리눅스_유닉스' 카테고리의 다른 글
svn + ssh 사용 예... (0) | 2009.10.17 |
---|---|
Fedora 에서 samba와 nfs를 사용하기 위해서... (0) | 2009.06.15 |
VMWare 에서 리눅스 네트웍 잡기 (0) | 2009.04.20 |
[Linux] 한글 locale 설정 (0) | 2008.02.11 |
[Linux] 간만에 gentoo 설치 (0) | 2008.02.11 |