



全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 网络游戏数据中心专用机架式PDU租赁与运维支持合同
- 网红咖啡品牌区域代理权及标准化技术培训服务协议
- 影视作品版权代理及国际版权销售协议
- 项目前期筹备临时合伙合同
- 动画系列剧音乐版权代理合同
- 精准影视特效场景搭建与施工技术指导协议
- 生物样本库数据共享与药物筛选合作补充协议
- 2025版高考政治一轮复习第12单元发展中国特色社会主义文化第29课坚持中国特色社会主义文化发展道路教学案新人教版必修3
- 2025版高考生物一轮复习高考加强课十六生命活动调节方式的判断及下丘脑的功能分析练习含解析新人教版
- 浙江专版2024年高中政治第一单元公民的政治生活第二课第三框民主管理:共创幸福生活讲义新人教版必修2
- 失能老人消防应急预案
- JGJ114-2014 钢筋焊接网混凝土结构技术规程
- 毕业设计220kv变电站电气一次部份设计
- JGT501-2016 建筑构件连接处防水密封膏
- 实验 验证牛顿第二定律
- 钻孔水文地质工程地质综合编录一览表模板
- 海外政策手册(2):国别研究沙特经济转型与中沙合作机遇
- 二年级上册心理健康教育说课稿-面对批评 全国通用
- 工程管理检讨书
- 2023年广西贺州中考语文真题及答案
- 押运员岗位职责
评论
0/150
提交评论