barman icon indicating copy to clipboard operation
barman copied to clipboard

barman-wal-archive / put-wal using (custom) compression

Open thoro opened this issue 4 years ago • 1 comments

Hi,

I started using put-wal / barman-wal-archive and checkout out compression (https://www.endpoint.com/blog/2017/03/28/postgres-wal-files-best-compression)

barman-wal-archive is currently not able to use any compression (via any parameter at least) and I thought for everyone using wal-archive via a internet connection this might actually be very helpful.

I envision something like in the config file, where you can put either a supported algorithm i.e. gzip or you can give the path to a custom script that executes the compression algorithm.

for example:

barman-wal-archive --compression=custom --custom_compression_filter=compress_wal.sh barman pg

The compression option should also take existing compression options: bzip2, gzip, pybzip2, pygzip, pigz

thoro avatar Jul 22 '20 09:07 thoro