#988914 automysqlbackup: COMP=bzip2 and COMPDIRECT=yes results in a gzip-compressed file with a .bz2 suffix

#988914#5
Date:
2021-05-21 11:11:55 UTC
From:
To:
Combining the COMP=bzip2 and COMPDIRECT=yes arguments results in gzip
compressed database dumps being created, but with ".bz2" file suffixes.

I've created a patch which fixes this, and also adds support for pigz,
zstd, lz4, pxz and other compression utilities.

It also uses the `--reflink=auto` option in recent version of the cp
program to make reflink copies of files when the `LATEST=yes` option is
set.

This may also fix #769656 and #783778.