How to use Pigz with Tar

后端 未结 3 765
感动是毒
感动是毒 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:21

    To pass arguments to pigz using -I or --use-compress-program, you can enclose the command and arguments in quotes, like so:

    tar --use-compress-program="pigz --best --recursive" -cf archive.tar.gz YourData
    

    Here's a fun option to monitor the speed of the archive creation:

    tar --use-compress-program="pigz --best --recursive | pv" -cf archive.tar.gz YourData
    

提交回复
热议问题