Pigz for restore

avn

Active Member
Mar 2, 2015
36
4
28
Hello,

I'm using pigz for backup (pigz=1 in vzdump.conf). It really helps because of smaller archive size, and in my case the bottleneck is slow backup storage. Therefore, smaller backups writes faster and take less space. But recently I discovered that restore uses gzip, not pigz (you can see it in the process list). This is really confusing. I was sure the option in vzdump.conf tell Proxmox to use pigz instead of gzip for backup and restore, but it uses gzip for restore. And restore with gzip takes more time than backup with pigz.

As I understand it, I can just make simlink /bin/gzip -> /usr/bin/pigz. Pigz options seems fully compatible with gzip. In this case I don't need option in vzdump.conf. But i will need to check simlink every time I install updates, in case some gzip update overwrite it.

Is there more proper way to do this? Maybe there's another option in some configuration file, like pigz=1 in vzdump.conf?
 
Last edited:
There is absolutely no need to replace the gzip binary and do anything hacky. All you need to do is enable pigz option in /etc/vzdump.conf and install the 'pigz' package.

EDIT: Looks like I misread. Restoring doesn't have much to do with vzdump, so the config changes won't affect it. It seems like the binary-replacement is one of the solutions.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!