如何在Tar中使用Pigz [英] How to use Pigz with Tar

查看:196
本文介绍了如何在Tar中使用Pigz的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在tar中使用Pigz

So I am using pigz in tar with

tar --use-compress-program=pigz

这有效,但是它没有使用我所有的处理器,我想确保它是递归(-r)并使用(-9压缩级别).

and this works but it doesn't use all of my processors, and I'd like to make sure it's recursive (-r) and using (-9 compression level).

我阅读了将多核用于tar + gzip/bzip压缩/decompression ,但它没有在任何地方添加该格式的其他命令,而且我在手册页中找不到任何程序来进行其他操作.

I read through Utilizing multi core for tar+gzip/bzip compression/decompression but it doesn't note anywhere to add additional commands in that format, and I couldn't find anything in the man page for either program for additional swithed.

谢谢,凸轮

推荐答案

马克·阿德勒(Mark Adler)在问题中所包含的SO链接上获得最高投票的答案确实为指定压缩级别以及要使用的处理器数量提供了解决方案:

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

请参阅: https://stackoverflow.com/a/12320421

这篇关于如何在Tar中使用Pigz的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆