cpio [option] [destination-directory] 【常用选项】 i:使用coppy-in模式,还原归档文件或列出归档文件中的文件列表。 o:使用copy-out模式,建立归档文件。 p:使用copy-pass模式,将文件直接复制到目的目录。 c:使用老式的ASCII归档模式。如果需要跨平台使用,应该使用老式的ASCII归档格式。 d:创建需要的目录。如果文件...
cpio [option] [destination-directory] 【常用选项】 i:使用coppy-in模式,还原归档文件或列出归档文件中的文件列表。 o:使用copy-out模式,建立归档文件。 p:使用copy-pass模式,将文件直接复制到目的目录。 c:使用老式的ASCII归档模式。如果需要跨平台使用,应该使用老式的ASCII归档格式。 d:创建需要的目录。如果文件...
(1)绝对路径:cpio -itv --absolute-filenames < home.cpio (2)相对路径:cpio -itv < home.cpio <3>解开备份 (1)绝对路径:cpio -ivdum --absolute-filenames < home.cpio (2)相对路径:cpio -ivdum < home.cpio option: -o:建立备份 -v:显示过程 ...
CPIO用法(比tar快很多哦) http://lubinbin.spaces.live.com/blog/cns!ecc32d5c4f04fc33!366.entry cpio使用 用法:cpio [ option ] [ <> device ] 例: 备份/home目录 <1>建立备份 (1)绝对路径:find /home -print |cpio -ov &g ...
如果要覆盖以及存在的同名文件,则需要指定-u option, cpio -iuv < tree.cpio CPIO's copy-in mode, copy-out mode and copy-pass mode copy-in mode 在copy-in mode, cpio 从archive 文件拷贝出文件或者显示archive中文件的内容。它从standard input 读入archive 文件。
[-O feature[,...]] [-r fs-revision] [-E extended-option[,...]] [-t fs-type] [-T usage-type ] [-U UUID] [-e errors_behavior][-z undo_file] [-jnqvDFSV] device [blocks-count] -b<区块大小> 指定区块大小,单位为字节。
MakeCPIOfile system archive with simple -o option withoutnewcformat in created before eg. base folder: find . | cpio -o | gzip -9 > ../base/file_system.gz Make proper archive withnewcformat containingkernel/x86/microcode/GenuineIntel.bin: ...
The archive is extracted to your current directory if you do not specify a destination location. Use the-doption to define a restore destination. Note that cpio does not overwrite existing files of the same name. Here is an example.
The -depth option causes find to search for files in a depth-first search, reducing the likelihood of permissions problems when you restore the files from the archive. --pass-through -p Copies files from one place on the system to another. Instead of constructing an archive file containing...
Thecpiocommand is traditionally used to copy file hierarchies in conjunction with thefindcommand. When creating an archive in copy-out mode ; you should givefindthe -depth option to minimize problems with permissions on directories that are unreadable. ...