免费注册 查看新帖 |

Chinaunix

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

cpio问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-19 11:34 |只看该作者 |倒序浏览
本人备份一系统,用find . -depth -print | cpio -ocv /dev/rmt/0出现错误提示,
说有个文件在当前模式下太大无法归档,查了一下该文件大小将近9G,请问大侠,上面
的命令改选还差哪一个参数,就能完整备份而不报错。

论坛徽章:
0
2 [报告]
发表于 2006-09-19 11:39 |只看该作者
看看磁带机是多大的,试试压缩方式。用/dev/rmt/0cbn。

论坛徽章:
0
3 [报告]
发表于 2006-09-19 11:48 |只看该作者

谢谢回复

谢谢回复

论坛徽章:
0
4 [报告]
发表于 2006-09-19 12:38 |只看该作者
Just a mistake, I think.

find .|cpio -oc >/dev/rmt/0cn.

Try again.

论坛徽章:
1
白羊座
日期:2014-05-04 17:53:33
5 [报告]
发表于 2006-09-20 14:26 |只看该作者
一定要用“-c”参数吗?试试这样:

  1. find /your-dir -depth -print0 | cpio --null -ov > /dev/rmt/0
复制代码


关于"-c"开关,Sun OS 5.8的Man Page是这样说的:

-c    Reads or writes header information in ASCII  character
           form for portability. There are no UID or GID restric-
           tions associated with this  header  format.  Use  this
           option  between  SVR4-based  machines,  or  the -H odc
           option between unknown machines. The -c option implies
           the  use  of  expanded  device numbers, which are only
           supported on  SVR4-based  systems.  When  transferring
           files  between  SunOS  4  or  Interactive UNIX and the
           Solaris 2.6 Operating environment or  compatible  ver-
           sions, use -H odc.


我不确定是不是"-c"引起的,你试试吧,呵呵。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP