



全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 初唐诗课件教学课件
- 化学课件链接
- 化学药剂的安全使用培训课件
- 二手车营销策划方案(3篇)
- 化学物品安全知识培训课件
- 化学实验室安全常识培训课件
- 创造课件的重要性
- 化学品的安全培训课件
- 14 母鸡 公开课一等奖创新教案(2课时)
- 故宫导游词讲解
- 检验科危急值课件
- 红十字救护员培训理论试题及答案
- 动量守恒定律模型归纳(11大题型)(解析版)-2025学年新高二物理暑假专项提升(人教版)
- 慢性阻塞性肺疾病(COPD)护理业务学习
- 2025-2026学年北师大版(2024)初中生物七年级上册教学计划及进度表
- 产科危急重症早期识别中国专家共识解读 3
- 医疗器械配送应急预案模板(3篇)
- DB65-T 4803-2024 冰川厚度测量技术规范
- 护理专业新进展介绍
- 小儿推拿进修总结汇报
- 2025公司应急预案演练计划(5篇)
评论
0/150
提交评论