moinakg/pcompress

Decompress from file to stdout

Opened this issue · 1 comments

It seems to be pcompress lacks feature like write to stdout when reading from compressed file.
In my use case I compress raw LVM volume with virtual machine's disk inside as
dd if=/dev/vg/lv bs=1M | pcompress -p -c zlib -l 6 -s 1g -G -D -S BLAKE256 -B 0 -L -P > file.pz
It work fine, but i have no way to extract volume from file.pz back to /dev/vg/lv without needing to unpack file.pz to other file and write last one by dd separate:
pcompress -d file.pz temp.file.dd
dd if=temp.file.dd of=/dev/vg/lv bs=1M
It would be great to make it through the pipe like
pcompress -d file.pz - | dd of=/dev/vg/lv bs=1M

Sorry for the delay in responding. Too many things were happening @ work. The output to file should be supported for non-archive mode. I will add it shortly.