一个创建归档,从解压归档,拷贝文件的工具,支持很多格式,主要用于备份。
打包文件到归档:
find . | cpio -ov > tree.cpio
从归档解压文件:
cpio -idv < tree.cpio
在目录间拷贝:
find . -print0 | cpio --null -pvd new-dir