Extract
$ zcat ../ramdisk.gz | cpio -idvm
Repack
$ find . | cpio -o -H newc | gzip -9 > ../ramdisk.gz