标题: 解决tar命令无法完成大于8G的文件包的问题 [打印本页] 作者: 东方蜘蛛 时间: 2006-04-24 18:24 标题: 解决tar命令无法完成大于8G的文件包的问题 Solaris的tar以前不支持tar出一个大于8G的tar包文件,只能去sunfreeware.com下载一个GNU的tar命令来完成这个功能,Solaris 8的tar命令支持-E的option,对以往不能tar大文件的限制已经可以取消了,请参考以下E选项的说明:
Write a tarfile with extended headers. (Used with c, r, or u options; ignored with t or x options.) When a tarfile is written with extended headers, the modifi- cation time is maintained with a granularity of microseconds rather than seconds. In addition, filenames no longer than PATH_MAX characters that could not be archived without E, and file sizes greater than 8GB, are supported. The E flag is required whenever the larger files and/or files with longer names, or whose UID/GID exceed 2097151, are to be archived, or if time granularity of microseconds is desired.