解壓cpio檔案 cpio -idmv < filename.cpio
同樣可以解壓img檔案:cpio -idmv < filename.imgcpio
備份指令備份:cpio -covB > [file|device]
将資料備份到檔案或裝置上還原: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