pigz
April 04, 2019
To compress using gzip format but using all your available cores:
tar --use-compress-program=pigz -cf archive.tgz /path/to/source
Or if you want to pipe it:
tar -cf - source | pigz > archive.tgz
To decompress use tar -xvf archive.tgz
as usual.
The output of pigz is compatible with gzip