CONFIG PARAMETER: compress_program <path>
This option specifies the program to be run to compress the database file when it is written. If database file compression is enabled, database dumps are piped through this program on their way out to disk. If compress_program is changed, the uncompress_program should be changed to match. Failing to change both to compatible compression programs will have unpredictable results.
This configuration option cannot be changed after the server starts. It can only be changed via the configuration file.
Within the configuration file, the following lines change the compression and uncompression program from gzip to bzip2 / gunzip to bunzip2, respectively..
compress_program /usr/bin/bzip2 uncompress_program /usr/bin/bunzip2