Wednesday, May 29, 2013

[ Level 1 ] create cpio file with find.

Cpio is a good tool to pack files in one image, and it's fast.
You could use find command to find files that you want and also use gzip to compress it.
$ find ./ -print | cpio -o -Hnewc | gzip > /tmp/my.cpio.gz

Wish this helps.

Stanley Huang