解壓cpio檔案

來源:互聯網
上載者:User
解壓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

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

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.