现在的位置: 首页 > 综合 > 正文

解压cpio文件

2013年09月09日 ⁄ 综合 ⁄ 共 1066字 ⁄ 字号 评论关闭
解压cpio文件 cpio -idmv < filename.cpio
同样可以解压img文件:cpio -idmv < filename.imgcpio
备份命令备份:cpio -covB >
将数据备份到文件或设备上还原:cpio -icduv < [file|device}
将数据还原到系统中常用参数:-o   :将数据copy到文件或设备上
-i    :将数据从文件或设备上还原到系统中
-t    :查看cpio建立的文件或设备内容
-c   :一种比较新的portable format方式存储
-v   :在屏幕上显示备份过程中的文件名
-B   :让预设的blocks可以增加到5120bytes,默认是512bytes,这样可以使备份速度加快
-d   :自动建立目录,这样还原时才不会出现找不到路径的问题
-u   :更新,用较新的文件覆盖旧的文件cpio常与find 配合使用

oracle用的是这种归档,只好记录一下了。

#gunzip 文件名.cpio.gz

#cpio -idmv < 文件名.cpio

# cpio -idvm < aix_oracle817_32_Disk1.cpio

 

cpio: 0511-903 Out of phase!

         cpio attempting to continue...

cpio: 0511-904 skipping 124796 bytes to get back in phase!

         One or more files lost and the previous file is possibly corrupt!

cpio: 0511-027 The file name length does not match the expected value.

# man cpio

c Reads and writes header information in ASCII character form. If a cpio archive

was created using the c flag, it must be extracted with c flag.

加上参数c就OK了。

cpio -idvmc < aix_oracle817_32_Disk1.cpio

========================================================

Oracle 专家QQ群:60632593(已满)、60618621、23145225

博客:blog.csdn.net/newhappy2008

========================================================

 

抱歉!评论已关闭.