Aix操作系統(tǒng)的備份與恢復
大家對Aix操作系統(tǒng)的喜歡,也許是因為他的短小強干的內核和豐富的核外系統(tǒng)程序或者良好的用戶界面,但是,在我們使用Aix操作系統(tǒng)的時候,也許會碰到系統(tǒng)問題,所以,我應該在之前做好系統(tǒng)的備份工作,然后也要學習如何恢復Aix操作系統(tǒng)。
數(shù)據(jù)的備份和恢復是Aix操作系統(tǒng)中一個重要的工作。在備份過程中,常常要使用compress和pack命令對數(shù)據(jù)進行壓縮。恢復時用uncompress、unpack解壓縮。
數(shù)據(jù)備份從方式上來說有如下三種:
系統(tǒng)備份 保留整個操作系統(tǒng)的備份映像,可用來恢復操作系統(tǒng)。
全備份 保留所有用戶的全部數(shù)據(jù)文件和配置信息。
增強式備份 只對上次備份后的修改部分作備份,備份速度快。
在系統(tǒng)安裝完畢后或系統(tǒng)有任何修改,都應該對ROOTVG作系統(tǒng)備份,方法是:
- # smit mksysb
- [TOP] [Entry Fields]
- WARNING: Execution of the mksysb command will
- result in the loss of all material
- previously stored on the selected
- output medium. This command backs
- up only rootvg volume group.
- * Backup DEVICE or FILE [] +/
- Create MAP files? no +
- EXCLUDE files? no +
- List files as they are backed up? no +
- Generate new /image.data file? yes +
- EXPAND /tmp if needed? no +
- Disable software packing of backup? no + [MORE...2]
- Esc+1=Help Esc+2=Refresh Esc+3=Cancel Esc+4=List
- Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
- Esc+9=Shell Esc+0=Exit Enter=Do
進入smit界面后,把device一欄設成磁帶機,然后按回車就行了。
對于非rootvg卷組,可用savevg命令或smit savevg來作備份。對于一般用戶可用backup命令來進行。
例如: backup [-u] [-level] [-f device] [file system]
其中允許使用參數(shù)實現(xiàn)增強式備份,如-0,-1,-2,...,等等,其中零級備份即表示全備份。除此以外,Aix操作系統(tǒng)還提供了tar、cpio、dd、copy、flcopy、tctl等,請查看隨機的CD-ROM文件。
注意:數(shù)據(jù)庫的備份應使用其提供的方法,才能保證數(shù)據(jù)庫的完整性。
這樣,我們就及時的對我們的Aix操作系統(tǒng)進行備份吧。
【編輯推薦】