免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2329 | 回复: 6
打印 上一主题 下一主题

[VTL与磁带系统] 请问linux磁带机如何恢复数据 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-01 14:11 |只看该作者 |倒序浏览
linux下/var/spool/cron/下文件丢了

原来是用磁带机备份的
现在需要磁带机恢复出来,怎么恢复啊?

论坛徽章:
0
2 [报告]
发表于 2009-06-01 14:50 |只看该作者
麻烦兄弟们帮下忙

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
3 [报告]
发表于 2009-06-01 15:22 |只看该作者
如果是用tar备份上去的,也是直接用tar恢复。
如果是备份软件备份的,要要用备份软件恢复。
要看楼主采用的是什么方式?

论坛徽章:
0
4 [报告]
发表于 2009-06-01 16:16 |只看该作者

回复 #3 无牙 的帖子

同事用
"rsh 主机名1 /sbin/dump 0uf 主机名2:/dev/rmt/0n  /dev/sda6"
中dump命令备份的,

我是用tar xvf恢复吗?步骤怎么做啊?

我是这样理解的如:
先用tar tvf /dev/rmt/0n 查看
再用tar xvf /dev/rmt/0n /dev/sda6恢复

这样做了,报错 之后没反应

论坛徽章:
0
5 [报告]
发表于 2009-06-01 16:18 |只看该作者
我主要是恢复/var/spool/cron/这个文件

我可以在日志中看到/var目录就在/dev/sda6里面

论坛徽章:
0
6 [报告]
发表于 2009-06-04 00:26 |只看该作者
我是这样理解的如:
先用tar tvf /dev/rmt/0n 查看
再用tar xvf /dev/rmt/0n /dev/sda6恢复

这样做了,报错 之后没反应

***************************
You pickup the wrong the special file for the command of "tar tvf /dev/rmt/0n".   /dev/rmt/0n is a "no-rewind in close". When you run the first tar command to read the file content,  the tape is rewound to end of data and stay there. The next tar command attempts to read the data back from the tape position of "end of data". It fails because it can't read.

The correct command is:
先用tar tvf /dev/rmt/0 查看
再用tar xvf /dev/rmt/0n /dev/sda6恢复
or
再用tar xvf /dev/rmt/0 /dev/sda6恢复

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
7 [报告]
发表于 2009-06-04 01:00 |只看该作者
应该用restore恢复吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP