HPUX系统备份及恢复策略课件.ppt
《HPUX系统备份及恢复策略课件.ppt》由会员分享,可在线阅读,更多相关《HPUX系统备份及恢复策略课件.ppt(68页珍藏版)》请在三一办公上搜索。
1、HP-UX系统备份及恢复策略,HP-UX系统备份及恢复策略,用户利益,最大程度减小数据恢复给业务带来的影响; 使您的备份与恢复策略更为有效; 减少您听到“我们恢复不了您的数据”的机会; 提供改进您的备份与恢复流程的建议; 图形表达备份与恢复流程;,用户利益 最大程度减小数据恢复给业务带来的影响;,备份数据策略,恢复数据策略,灾难恢复流程,故障报警,备份系统高可用性,数据库联机备份,备份管理,制定完善的备份管理流程,备份数据策略恢复数据策略灾难恢复流程故障报警备份系统高可用性,数据备份的忠告,选用适当的备份设备和备份软件尽可能使用多于一个的物理设备经常有规律的作备份至少保存两份最新的备份定义备份
2、进度:方式、频率、时序和保管备份权限的设定备份步骤信息的记录定时清洁和维护设备数据恢复和故障预演,数据备份的忠告选用适当的备份设备和备份软件,映像备份备份整个磁盘作为一个映像限制:恢复时要求作为一个映像,不可依据文件类型限制卷的大小适合灾难恢复基于文件的备份逐个文件的备份支持各种备份方式全备分增量备份差分备份备份和恢复的灵活性更慢,独立于文件存取的速度,数据备份的类型,映像备份数据备份的类型,level0全备份Full backup,level2差分备份Differential backup,level1增量备份Incremental backup,备份方式,level0level2level
3、1备份方式,恢复过程,仅需一盘磁盘,tape 1 + x tape,tape 1 + (x-1) tapes,level0全备份Full backup,level2差分备份Differential backup,level1增量备份Incremental backup,恢复过程仅需一盘磁盘tape 1 + x tapetape,Backup and Recovery Procedures,Backup and Recovery Procedures,Step 1 拜访用户对备份技术进行讲解,主要介绍备份与恢复的重要性和必要性,以及备份与恢复的内容,方法和策略。,Backup and Recov
4、ery Procedures 1,Step 1 拜访用户Backup and Recov,Objectives of Backup/RecoveryScope of Backup/RecoveryType of Backup SolutionSystem Backup/Recovery UtilitiesSystem Recovery ToolsTypical System Backup SolutionBackup Window,Backup and Recovery on HP-UX System,Objectives of Backup/RecoveryB,Why Backup?,Har
5、dware(Disk) Failure Database / Application Corruption Administrator Error User Error Site Disaster,“There are twotype of computer users, those that have lost data and those that will”,Why Backup? Hardware(Disk) Fai,What should be backed up?,Operating System files and configuration Disk layout inform
6、ation User profiles and home directories Application and database binaries and files The data from the application,The data includes:,What should be backed up? Oper,Type of Backup Solution,OS / Database Backup Incremental / Full Backup Online / Offline Backup Local / Network Backup,Type of Backup So
7、lution OS / D,System Backup/Recovery Utilities,Standard UNIX Utilitiestar, cpio , dump/restore , vxdump/vxrestore , dd , mtHP-UX Utilites (HP_UX only)fbackup / frecoverSAM UtilitiesCOPYUTILmake_recovery,System Backup/Recovery Utiliti,backup utilities introduce,fbackupRecommended system backup utilit
8、y. For each file transferred, the files contents and all relevant information necessary to restore it to an equivalent state are copied to output device, which can be raw magnetic tape drive, the standard output, DDS-format tape, rewritable magneto-optical disk or a file.frecoverReads media written
9、by fbackup, and copies specified files from this media to specified location.fbackup and frecover are proprietary utilities usable only on HP-UX systems.SAM uses fbackup and frecover as its backup programs.tarSaves and restores files on magnetic tape, flexible disk, or regular file.cpioSaves and res
10、tores archives of files on magnetic tape, other devices, or a regular file, and copies files from one directory to another while replicating the directory tree structure.ddAll-purpose utility that copies to/from raw devices. Data conversion is possible. It is often used to save or restore informatio
11、n disk-to-disk. Copies specified input file to specified output; usually, both input and output files are device files.,backup utilities introducefbac,tar - tape archive,Backup a directory:#cd /data#tar cvf /dev/rmt/0m . Restore all files from a tape:#cd /datatar xvf /dev/rmt/0mRestore one file from
12、 a tape:#cd /data#tar xvf /dev/rmt/0m ./file1.txtCreate a index of the file list on the tape:#tar tvf /dev/rmt/0m /tmp/index.txt,/data,/data,tar - tape archiveBackup a d,tar syntax,$ tar key arg. file | -C directoryKeys:cxvfmutrwhCommon keys:c Create archive.x Extract archive.t List names of all fil
13、es in archive.r Append file(s) to end of existing archive.If -C directory is specified, tar will change to directory and continue save or restore.,tar syntax$ tar key arg. ,对系统全备份#tarcvf/dev/rmt/0m/ 备份某目录#tarcvf/dev/rmt/0m/tmp改变文件的备份路径#tarcvf/dev/rmt/0m-C/tmp.Note:路径/tmp在磁带上的备份路径变为./#cd/tmp#tarcvf/d
14、ev/rmt/0m./*恢复数据#tarxvf/dev/rmt/0m(磁带上所有数据)#tarxvf/dev/rmt/0m/tmp(恢复目录/tmp)查看磁带上的数据#tartvf/dev/rmt/0m,tar命令应用,对系统全备份tar命令应用,dd example,To copy an entire disk drive to another identically-sized device:# dd if=/dev/rdsk/c0t1d0 of=/dev/rdsk/c3t3d0 bs=4096,dd exampleTo copy an entire di,dd syntax,# dd i
15、f=input_file of=output_file bs=block_sizeWarning:Data will be destroyed on the output file location.Ensure that the correct output file is designated to prevent unintentional data destruction.,dd syntax# dd if=input_file o,cpio example,To use with the find command to backup all files and sub-directo
16、ries of the /home directory:$ find /home -print | cpio -ocB /dev/rmt/0mTo print a listing of files stored on a backup created by cpio:$ cpio -itBv /dev/rmt/0m,cpio exampleTo use with the fi,cpio syntax,$ cpio -o -e extarg achvxABC$ cpio -i bodfmrstuvxBPRSU6 pattern$ cpio -p -e extarg adlmruvxU direc
17、toryCommon options:o Copy out (export) specified files to archivei Copy in (import) specified files from archivep Duplicate directory tree (passthrough)c Write or read header information in ASCII character format for portabilityd Create directories as neededt Print table of contents only.B Block inp
18、ut/output at 5120 bytes to record.Use only with data directed to or from devices that support variable-length records.v Print file characteristics (numeric-mode, owner, blocks, date, filename)pattern Only files that match pattern are saved/restoreddirectory Destination directory tree,cpio syntax$ cp
19、io -o -e extar,fbackup/frecover,Backup a directory:#fbackup -f /dev/rmt/0m -i /dataRestore all files from a tape:#frecover -orf /dev/rmt/0mRestore one file from a tape:#frecover -oxf /dev/rmt/0m -i /data/file1.txtCreate a index of the file list on the tape:#frecover -f /dev/rmt/0m -I /tmp/index.txt,
20、/data,/data,fbackup/frecoverBackup a direc,fbackup syntax,# fbackup -f devicefile -0-9 optionsWhere:-f devicefile Identifies backup device-0-9 Backup level (0=full backup; 1-9 indicates incremental)Common options:-i filename Informs fbackup to include file filename.-e filename Informs fbackup to exc
21、lude file filename.-I filename Creates an index in filename.-g filename The filename specifies an ASCII file which contains file trees to include or exclude.,fbackup syntax# fbackup -f dev,fbackup命令应用一,1进入单用户#shutdown-y0 #/etc/mount-a2系统全备份#fbackupf/dev/rmt/0m-0iv/-I/tmp/sysbk.index -f:设备文件名(suchasD
22、DStapedriver) -i:要包含的目录 -e:不包含的目录 -I:备份内容检索目录 -v:备份内容详细列表 -0:零级备份 #fbackupf/dev/rmt/0m-i/-e/home 备份除了目录/home的所有目录3说明1)该命令方式对系统当前”mounted“的文件系统进行备份 2)备份级别说明 备份级别有09个级别,如果当前系统采用零级备份,当下一次采用5级 备份时,系统仅将会对有变化的文件进行备份,fbackup命令应用一1进入单用户,1#mkdir-p/tmp/fbackupfiles/index #mkdir-p/tmp/fbackupfiles/log 2#touch/
23、tmp/fbackupfiles/index/full.date+%y%m%d.%H:%M 3进入单用户 #shutdowny0 #/etc/mount-a 4对系统进行全备份 #fbackup0vi/-f/dev/rmt/0m -I/tmp/fbackupfiles/index/full.date+%y%m%d.%H:%M 2/tmp/fbackupfiles/log/full.date+%y%m%d.%H:%M 5说明 通过该方式可以知到系统备份需要的时间,fbackup命令应用二,1#mkdir-p/tmp/fbackupfile,fbackup命令应用三,1进入单用户 #shutdow
24、ny0 #/etc/mount-a 2对系统进行全备份 #fbackup0uv/-f/dev/rmt/0m -g/tmp/fbackupfiles/mygraph -I/tmp/fbackupfiles/index/full.date+%y%m%d.%H:%M 2/tmp/fbackupfiles/log/full.date+%y%m%d.%H:%M 3说明 a.文件mygraph:包含需要备份的目录,格式如下: i/users/data i/home/app e/oracle/sql b.参数u: 当备份系统成功时,系统将更新/var/adm/fbackupfiles/dates.,fbac
25、kup命令应用三1进入单用户,fbackup命令应用四,备份远程系统 1登录在本地系统时 #remshbackup_sysname”fbackupfDDS_sysname:/dev/rmt/0m-0vi/” 2登录在远程系统时 #fbackupfbackup_sysname:/dev/rmt/0m0vi/,fbackup命令应用四备份远程系统 1登录在本,fbackup命令应用五,压缩方式备份(不建议使用、影响系统性能) 1压缩方式备份 #fbackup0vi/dir-f-|compress|ddof=/dev/rmt/0mobs=10k “”:指向标准输出 2查看备份内容 #ddif=/de
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- HPUX 系统 备份 恢复 策略 课件

链接地址:https://www.31ppt.com/p-1285172.html