Faster cPanel Backup by Replacing gzip with pigz
Gzip doesn't make good use of multi-processor/multi-core machines, which results in long backup time.
Fortunately, there's an in-place replacement, pigz
"pigz, which stands for parallel implementation of gzip, is a fully functional replacement for gzip that exploits multiple processors and multiple cores to the hilt when compressing data."
Also, files compressed with pigz can be decompressed with gunzip, and unpigz can decompress gzip compressed files.
I've done a couple of tests on an 8 cores machine, and here are the results:
In layman's terms "to get more votes :)" .. pigz compressed a 788 MB file, using fastest compression and all 8 cores, in 7 seconds, while it took gzip 1 minute and 7 seconds .. you do the math.
BTW, pigz was written by Mark Adler.
Adler is the author of the Adler-32 hash function, a co-author of the zlib compression library and gzip, has contributed to Info-ZIP, and has participated in developing the Portable Network Graphics (PNG) image format. Adler was also the Spirit Mission Manager for the Mars Exploration Rover mission.
In short .. he knows what he's doing :)
Original Thread: Faster cPanel Backup by replacing gzip with pigz