find /opt -print | cpio -o > opt.cpio find . -type f -name '*.sh' -print | cpio -o | gzip >sh.cpio.gz cpio –i < opt.cpio