cpio + gzip

壓縮
$find folder1 | cpio -ocvB | gzip > folder1.cpio.gz
$dd if=/dev/sdan bs=4096 conv=notrunc,noerror | gzip > /path/image.gz
解壓縮
$gzip -dc folder1.cpio.gz | cpio -idv
$gzip -dc /path/image.gz | dd of=/dev/sdan bs=4096 conv=notrunc,noerror

虹光大成就-密教灌頂(一)