Fast parallel ZIP compression with PIGZ

Compress an entire directory using all CPU threads, monitoring the progress:

tar -c DIR1 | pv --size `du -csh DIR1 | grep total | cut -f1` | pigz -9 > DIR1.gz

Uncompress:
tar -zxvf DIR1.gz

Leave a Reply