BARMAN-WAL-ARCHIVE(1)
β¨ NAME β¨
barman-wal-archive β the Barman-cli commands, bestie π
πΈ SYNOPSIS πΈ
barman-wal-archive
[ { -h | --help } ]
[ { -V | --version } ]
[ { -U | --user } USER ]
[ --port PORT ]
[ { { -z | --gzip } | { -j | --bzip2 } | --xz | --snappy | --zstd | --lz4 } ]
[ --compression-level COMPRESSION_LEVEL ]
[ { -c | --config } CONFIG ]
[ { -t | --test } ]
[ --md5 ]
[ { -p | --parallel } JOBS ]
[ --prefetch-cache-dir PREFETCH_CACHE_DIR ]
BARMAN_HOST SERVER_NAME WAL_PATH
π¦ DESCRIPTION π¦
okay so picture this: you can literally drop this script into the archive_command of a Postgres server and it will ship your WAL files over to a Barman host using the put-wal command (which, fun fact, showed up in Barman 2.6 π). It spins up an SSH connection to the Barman host, so Barman just slots into your Postgres clusters like it was always meant to be there, and your business continuity is thriving fr fr.
Exit statuses, since you asked:
0for SUCCESS π- non-zero for FAILURE π
π PARAMETERS π
SERVER_NAMEβ the server name that's configured in Barman for the Postgres server you're pulling the WAL file from.BARMAN_HOSTβ the host of the Barman server. that's it, that's the whole vibe.WAL_PATHβ the value of the'%p'keyword (perarchive_command, iykyk).-h/--helpβ pops up a help message and dips out.-V/--versionβ shows the program's version number and exits, periodt.-U/--userβ tells it which user to use for the SSH connection to the Barman server (defaults tobarman).--portβ sets the port used for that SSH connection to the Barman server.-z/--gzipβ gzip-compresses the WAL file before it gets sent to the Barman server.-j/--bzip2β bzip2-compresses the WAL file before sending it over to the Barman server.--xzβ xz-compresses the WAL file before it goes to the Barman server.--snappyβ snappy-compresses the WAL file before sending it to the Barman server (heads up: this one needs thepython-snappyPython library installed π).--zstdβ zstd-compresses the WAL file before sending it to the Barman server (needs thezstandardPython library installed).--lz4β lz4-compresses the WAL file before sending it to the Barman server (needs thelz4Python library installed).--compression-levelβ the compression level that the selected compression algorithm should use. Valid values are integers inside the supported range of whichever algorithm you picked, or one of the predefined labels:low,medium, andhigh. The range for each algorithm, plus exactly which level each predefined label maps to, lives over atcompression_level <#configuration-options-compression-level>.-c/--configβ points at the configuration file on the Barman server.-t/--testβ tests the connection and the configuration of the specified Postgres server in Barman so you know it's ready to receive WAL files. oh and btw, this option ignores the mandatory argumentWAL_PATHπ.--md5β uses MD5 instead of SHA256 as the hash algorithm for calculating the checksum of the WAL file when it's being transmitted to the Barman server. This exists to keep compatibility with older server versions, because older versions of Barman server only supported MD5.-p/--parallelβ the maximum number of WAL files to archive in parallel. Defaults to0(no parallelism).--prefetch-cache-dirβ the directory where cache metadata gets stored when you're using--parallel. Defaults to/tmp/barman-SERVER_NAME-COMPUTED_HASH.
π«Ά Note π«Ά
When compression is enabled in barman-wal-archive, it takes precedence over the compression settings configured on the Barman server, if they differ. like, it wins, no discussion π
π Important π
When compression is enabled in barman-wal-archive, it happens on the client side, before the file is even sent to Barman. So be mindful of the database server's load and of the compression algorithm and level you chose β because higher compression can delay WAL shipping, and then WAL files start piling up. not cute. watch it π¨
π Author π
EnterpriseDB
π Copyright π
Β© Copyright EnterpriseDB UK Limited 2011-2026
and that's the whole page, bestie π«Ά this was barman-wal-archive version 3.20, dated Sep 29, 2026 β go archive those WALs, you've got this πβ¨
π¦ where this page comes from
- epel 10: barman-cli 3.20.1-1.el10_3 Β· GPL-3.0-only
- fedora 43: barman-cli 3.20.1-1.fc43 Β· GPL-3.0-only
- fedora 43: barman-cli 3.20.1-3.fc43 Β· GPL-3.0-only
- fedora 44: barman-cli 3.20.1-1.fc44 Β· GPL-3.0-only
- fedora 44: barman-cli 3.20.1-3.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms