全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1 INDETIFY YOUR TAPE BACKUP UNIT RedHat Linux supports many different kinds of tape devices Typically SCSI tape devices will be named dev st0 dev st1 etc IDE tape devices will be named dev ht0 dev ht1 etc If the device name has an n in front of it like dev nst0 for example then it is a No rew ind device The device will not rewind automatically after a utility like dump or tar is finish ed writing to it Identify the TBU in your system with the following command cat proc scsi scsi Notice the information that this file contains Vendor Model Firmware revision and access type 2 CONTROLLING THE TAPE DEVICE The mt utility can be used to control the tape device Mt is installed with package mt st 0 5b 10 src spm mt usage mt v h f device command count You can use the f switch to specify a tape device For example to eject a scsi tape from your tape backup u nit type the following command mt f dev st0 offline The mt command will default to dev tape if no f switch is used Create a symbolic link between dev st0 and dev tape for ease of mainte nance ln s dev st0 dev tape mt offline Erase a tape with the following command mt erase The mt status command is similar to the command tape status in SCO OpenServer mt status Rewind a no rewind tape device with the following command mt rewind Mt commands are often used in backup scripts Some versions of Linux also include a remo te version of mt called rmt The use of rmt is not recommended in secure environments 3 BACKUP TO TAPE USING TAR The tar archive program is frequently used to backup data to a TBU Tar is a popular backu p solution because it compresses data Tar can be installed with package tar 1 13 17 8 src rpm Perform a backup of the home directory using the tar command tar cvf dev st0 home Verify the contents of the tape using tar tar tvf dev st0 Restore the contents of the tape using the tar command tar xvf dev st0 Notice that the contents of the tape restore to your current working directory The restored data can be compared with the original data before it is overwritten Tar archives can be further compressed with gzip tar zcf dev st0 home Extract the zipped archive with the following command tar zxf dev st0 4 BACKUP USING CPIO Cpio is another popular backup solution Cpio can be used to copy files into or out of an exi sting tar or cpio archive Cpio can backup or restore data incrementally This utility can als o be used to sort archived data by file name owner timestamp and access permissions Cpio can be installed with package cpio 2 4 2 20 src rpm Cpio operates in 3 modes copy out mode copy in mode and copy pass mode Use copy out mode to write a file to t he tape drive Copy out mode is frequently used with the find command For example find tmp cpio ocv dev st0 Verify the backup cpio tvF dev st0 Use copy in mode to restore archived data from an archive destination file The restore will not overwrite files that are more or the same age without a force switch cpio icv dev st0 Verify the contents of the tape tar tvf dev st0 Perform a restore cpio ivH tar dev st0 Notice that the cpio restore in tar format restores to the current working directory 5 BACKUP USING DUMP RESTORE Dump Restore are utilities that were developed specifically for use with the ext2 file syste m Dump can be used to perform full or incremental backups However because dump is t ypically used for full restores because it was designed to back up entire partitions The dump and restore utilities can be installed with package dump 0 4b19 4 src rpm Back up a full partition with the following command dump 0u f dev st0 example1 Since dump is designed to back up incrementally you should always start with a level 0 ba ckup The u switch updates the files etc dumpdates cat etc dumpdates Next create a new file touch example1 hello Since the directory has changed insert a new tape and perform a level 1 dump to backup everything since the last level 0 dump dump 1u f dev st0 example1 Notice that etc dumpdates has been updated to reflect the newest backup cat etc dumpdates The restore utility can be used to restore should the partition fail To perform a restore cre ate the new partition mount it and format the partition with the ext2 file system using th e mkfs command Next insert the dump le
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 中学生通过VR技术体验城市公共交通系统优化课题报告教学研究课题报告
- 2025年直播电商供应链售后体系十年报告
- 数字教育资源在终身教育体系中的应用与实践教学研究课题报告
- 2025年社区健康老龄化服务发展报告
- 小学健康教育课程中人工智能辅助教学策略研究与实践教学研究课题报告
- 多系统融合定位-洞察及研究
- H2S气体危害事故应急处置演练方案
- 车辆伤害、叉车事故应急应急演练方案
- 全员有限空间作业安全知识考核(2024年8月)
- 气焊、气割作业安全操作规程
- 肿瘤科危急值专题培训课件:《危急值接收、处置流程、专科危急值及处理原则》
- 海南省部分学校2023-2024学年高二下学期7月期末联考 化学试题(含解析)
- 莎士比亚戏剧赏析智慧树知到期末考试答案章节答案2024年北京师范大学
- 2024年泰安市泰山产业发展投资集团有限公司招聘笔试冲刺题(带答案解析)
- 48贵州省贵阳市2023-2024学年五年级上学期期末数学试卷
- 卫浴洁具市场渠道营销策划
- 比亚迪S7说明书
- 涂装生产线设备维护方案
- 外委单位考核细则模板
- HXD1C型电力机车的日常检修工艺设计
- 专升本《模拟电子技术》模拟的题目试卷
评论
0/150
提交评论