How to use Pigz with Tar

后端 未结 3 761
感动是毒
感动是毒 2021-02-01 02:46

So I am using pigz in tar with

tar --use-compress-program=pigz

and this works but it doesn\'t use all of my processors, and I\'d like to make s

3条回答
  •  离开以前
    2021-02-01 03:11

    Mark Adler's top voted answer on the SO link that you included in your question does provide a solution for specifying compression-level as well as number of processors to use:

    tar cf - paths-to-archive | pigz -9 -p 32 > archive.tar.gz
    

    See : https://stackoverflow.com/a/12320421

提交回复
热议问题