您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 数据库 > HPUX系统备份及恢复策略
ChinaTCOinternaluseHP-UX系统备份及恢复策略ChinaTCOinternaluse用户利益最大程度减小数据恢复给业务带来的影响;使您的备份与恢复策略更为有效;减少您听到“我们恢复不了您的数据”的机会;提供改进您的备份与恢复流程的建议;图形表达备份与恢复流程;ChinaTCOinternaluse备份数据策略恢复数据策略灾难恢复流程故障报警备份系统高可用性数据库联机备份备份管理制定完善的备份管理流程ChinaTCOinternaluse数据备份的忠告1.选用适当的备份设备和备份软件2.尽可能使用多于一个的物理设备3.经常有规律的作备份4.至少保存两份最新的备份5.定义备份进度:方式、频率、时序和保管6.备份权限的设定7.备份步骤信息的记录8.定时清洁和维护设备9.数据恢复和故障预演ChinaTCOinternaluse映像备份备份整个磁盘作为一个映像限制:恢复时要求作为一个映像,不可依据文件类型限制卷的大小适合灾难恢复基于文件的备份逐个文件的备份支持各种备份方式1.全备分2.增量备份3.差分备份备份和恢复的灵活性更慢,独立于文件存取的速度数据备份的类型ChinaTCOinternaluselevel0全备份Fullbackuplevel2差分备份Differentialbackuplevel1增量备份Incrementalbackup备份方式ChinaTCOinternaluse恢复过程仅需一盘磁盘tape1+xtapetape1+(x-1)tapeslevel0全备份Fullbackuplevel2差分备份Differentialbackuplevel1增量备份IncrementalbackupChinaTCOinternaluseBackupandRecoveryProcedures1.拜访用户2.现状分析3.制定策略4.用户确认开始结束ChinaTCOinternaluseStep1拜访用户对备份技术进行讲解,主要介绍备份与恢复的重要性和必要性,以及备份与恢复的内容,方法和策略。BackupandRecoveryProcedures1ChinaTCOinternaluseObjectivesofBackup/RecoveryScopeofBackup/RecoveryTypeofBackupSolutionSystemBackup/RecoveryUtilitiesSystemRecoveryToolsTypicalSystemBackupSolutionBackupWindowBackupandRecoveryonHP-UXSystemWhyBackup?Hardware(Disk)FailureDatabase/ApplicationCorruptionAdministratorErrorUserErrorSiteDisaster“Therearetwotypeofcomputerusers,thosethathavelostdataandthosethatwill”Whatshouldbebackedup?OperatingSystemfilesandconfigurationDisklayoutinformationUserprofilesandhomedirectoriesApplicationanddatabasebinariesandfilesThedatafromtheapplicationThedataincludes:TypeofBackupSolutionOS/DatabaseBackupIncremental/FullBackupOnline/OfflineBackupLocal/NetworkBackupChinaTCOinternaluseSystemBackup/RecoveryUtilitiesStandardUNIXUtilitiestar,cpio,dump/restore,vxdump/vxrestore,dd,mtHP-UXUtilites(HP_UXonly)fbackup/frecoverSAMUtilitiesCOPYUTILmake_recoveryChinaTCOinternalusebackuputilitiesintroducefbackupRecommendedsystembackuputility.Foreachfiletransferred,thefile’scontentsandallrelevantinformationnecessarytorestoreittoanequivalentstatearecopiedtooutputdevice,whichcanberawmagnetictapedrive,thestandardoutput,DDS-formattape,rewritablemagneto-opticaldiskorafile.frecoverReadsmediawrittenbyfbackup,andcopiesspecifiedfilesfromthismediatospecifiedlocation.fbackupandfrecoverareproprietaryutilitiesusableonlyonHP-UXsystems.SAMusesfbackupandfrecoverasitsbackupprograms.tarSavesandrestoresfilesonmagnetictape,flexibledisk,orregularfile.cpioSavesandrestoresarchivesoffilesonmagnetictape,otherdevices,oraregularfile,andcopiesfilesfromonedirectorytoanotherwhilereplicatingthedirectorytreestructure.ddAll-purposeutilitythatcopiesto/fromrawdevices.Dataconversionispossible.Itisoftenusedtosaveorrestoreinformationdisk-to-disk.Copiesspecifiedinputfiletospecifiedoutput;usually,bothinputandoutputfilesaredevicefiles.ChinaTCOinternalusetar---tapearchiveBackupadirectory:#cd/data#tarcvf/dev/rmt/0m.Restoreallfilesfromatape:#cd/datatarxvf/dev/rmt/0mRestoreonefilefromatape:#cd/data#tarxvf/dev/rmt/0m./file1.txtCreateaindexofthefilelistonthetape:#tartvf/dev/rmt/0m/tmp/index.txt/data/dataChinaTCOinternalusetarsyntax$tarkey[arg...][file|-Cdirectory]Keys:cxvfmutrwhCommonkeys:cCreatearchive.xExtractarchive.tListnamesofallfilesinarchive.rAppendfile(s)toendofexistingarchive.If-Cdirectoryisspecified,tarwillchangetodirectoryandcontinuesaveorrestore.ChinaTCOinternaluse对系统全备份#tarcvf/dev/rmt/0m/备份某目录#tarcvf/dev/rmt/0m/tmp改变文件的备份路径#tarcvf/dev/rmt/0m-C/tmp.[Note]:路径/tmp在磁带上的备份路径变为./#cd/tmp#tarcvf/dev/rmt/0m./*恢复数据#tarxvf/dev/rmt/0m(磁带上所有数据)#tarxvf/dev/rmt/0m/tmp(恢复目录/tmp)查看磁带上的数据#tartvf/dev/rmt/0mtar命令应用ChinaTCOinternaluseddexampleTocopyanentirediskdrivetoanotheridentically-sizeddevice:#ddif=/dev/rdsk/c0t1d0of=/dev/rdsk/c3t3d0bs=4096ChinaTCOinternaluseddsyntax#ddif=input_fileof=output_filebs=block_sizeWarning:Datawillbedestroyedontheoutputfilelocation.Ensurethatthecorrectoutputfileisdesignatedtopreventunintentionaldatadestruction.ChinaTCOinternalusecpioexampleTousewiththefindcommandtobackupallfilesandsub-directoriesofthe/homedirectory:$find/home-print|cpio-ocB/dev/rmt/0mToprintalistingoffilesstoredonabackupcreatedbycpio:$cpio-itBv/dev/rmt/0mTorestoreafilefromacpiobackup:$cpio-icBv/etc/lvmtab/dev/rmt/0mTobackupallfilesincurrentdirectory:$ls|cpio-ocB/dev/rmt/0mChinaTCOinternalusecpiosyntax$cpio-o[-eextarg][achvxABC]$cpio-i[bodfmrstuvxBPRSU6][pattern]$cpio-p[-eextarg][adlmruvxU]directoryCommonoptions:oCopyout(export)specifiedfilestoarchiveiCopyin(import)specifiedfilesfromarchivepDuplicatedirectorytree(passthrough)cWriteorreadheaderinformationinASCIIcharacterformatforportabilitydCreatedirectoriesasneededtPrinttableofcontentsonly.BBlockinput/outputat5120bytestorecord.Useonlywithdatadirectedtoorfromdevicesthatsupportvariable-lengthrecords.vPrintfilecharacteristics(numeric-mode,owner,blocks,date,filename)patternOnlyfilesthatmatchpatternaresaved/restoreddirectoryDestinationdirectorytreeChinaTCOinternalusefbackup/frecoverBackupadirectory:#fbackup-f/dev/rmt/0m-i/dataRestoreallfilesfromatape:#frecover-orf/dev/rmt/0mRestoreonefilefromatape:#frecover-o
本文标题:HPUX系统备份及恢复策略
链接地址:https://www.777doc.com/doc-3478429 .html