tar不能处理长文件名

有朋友问tar 的时候报错,原因可能是tar不能处理长文件名或长目录

建议用cpio

[@more@]

错误信息:

tar: 0511-190 File name remove_bak/qyhy/zhwl/qyhy/tgzn/ywlc/xywp/tgzn/tgzn/dmcx/tgzn/fgcx/tgzn/146zcfg/147tjjyjyj/tgzn/146zcfg/150tjbj/tgzn/146zcfg/199tjhg/tgzn/146zcfg/149tjszf/tgzn/146zcfg/151tjhsj/tgzn/146zcfg/tgzn/zyxz/bgxz/tgzn/zyxz/tgzn/zyxz/rjxz/tgzn/zxxz/tgzn/zxxz/ggb/zhxw/kadt/bgtj/kadt/kadt/gktt/kadt/myje/kadt/wztj/kadt/qttj/kadt/cbtj/dzsw/bsqc1/dzsw/dzsw/bsqc2/BMW730LI/dzsw/bsqc2/dzsw/b

说明:

When specifying path names that are greater than 100 characters for the United States Tape Archiver (USTAR) format, remember that the path name is composed of a prefix buffer, a / (slash), and a name buffer.

The prefix buffer can be a maximum of 155 bytes and the name buffer can hold a maximum of 100 bytes. If the path name cannot be split into these two parts by a slash, it cannot be archived. This limitation is due to the structure of the tar archive headers, and must be maintained for compliance with standards and backwards compatibility. In addition, the length of a destination for a hard or symbolic link ( the 'link name') cannot exceed 100 bytes.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7318139/viewspace-963875/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7318139/viewspace-963875/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值