BARMAN-WAL-RESTORE(1)
π BARMAN-WAL-RESTORE π (section 1, bestie)
okay so this is the Barman manual page for the barman-wal-restore command β the Barman-cli one. pull up a chair, we're doing this. π«Ά
β¨ NAME β¨
barman-wal-restore β Barman-cli Commands π
π SYNOPSIS π
barman-wal-restore
[ { -h | --help } ]
[ { -V | --version } ]
[ { -U | --user } USER ]
[ --port PORT ]
[ { -s | --sleep } SECONDS ]
[ { -p | --parallel } JOBS ]
[ --spool-dir SPOOL_DIR ]
[ { -P | --partial } ]
[ { { -z | --gzip } | { -j | --bzip2 } | --keep-compression } ]
[ { -c | --config } CONFIG ]
[ { -t | --test } ]
BARMAN_HOST SERVER_NAME WAL_NAME WAL_DEST
πΈ DESCRIPTION πΈ
This script is literally a restore_command for Postgres servers, and its whole job is grabbing WAL files through Barman's get-wal feature. π¦ It opens up an SSH connection to the Barman host and makes it so easy to slot Barman into your Postgres clusters β which is giving business continuity, no cap. π
And the exit statuses, bestie, are these:
0for SUCCESS. π1for remoteget-walcommand FAILURE, most likely because the WAL you asked for could not be found. π2forsshconnection FAILURE. π- Any other non-zero value for FAILURE.
π PARAMETERS π
π the positional besties
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. π»WAL_NAMEβ the value of the%fkeyword (perrestore_command).WAL_NAME... no wait, we already did that one. π It'sWAL_DESTβ the value of the%pkeyword (perrestore_command).
β¨ the options, one by one, all of them, yes all of them β¨
-h,--helpβ show a help message and dip. π-V,--versionβ show the program's version number and dip. π’-U,--userβ set the user for the SSH connection to the Barman server. Defaults tobarman. π--portβ set the port used for the SSH connection to the Barman server. πͺ-s,--sleepβ pause for SECONDS after a failedget-walrequest. Defaults to0β no wait at all. π΄-p,--parallelβ how many WAL files to fetch in parallel. Default is0(disabled). When you set it to anything greater than1, it fetches the WAL file you asked for plus the nextN - 1files at the same time. Those extra files get staged in a local spool directory (peep--spool-dir) so later restore requests can be served immediately from local storage. so efficient, we love her. π₯--spool-dirβ the directory used for staging those extra WALs that get fetched when you're using--parallel. Default is/var/tmp/walrestore. π-P,--partialβ include partial WAL files (.partial) in the retrieval. π§©-z,--gzipβ transfer WAL files compressed withgzip. ποΈ-j,--bzip2β transfer WAL files compressed withbzip2. ποΈ--keep-compressionβ if you specify this, compressed files get transferred as-is and decompressed on arrival on the client side. π¦-c,--configβ specify the configuration file on the Barman server. βοΈ-t,--testβ test the connection and the configuration of the specified Postgres server in Barman, to make sure it's ready to receive WAL files. This option ignores the mandatory argumentsWAL_NAMEandWAL_DEST. β
β οΈ Warning β οΈ
bestie, listen.-z/--gzipand-j/--bzip2are deprecated and are going to be removed in the future. π For WAL compression, please make sure to enable it directly on the Barman server via thecompressionconfiguration option. do it there, not here. fr fr. π
π Author π
EnterpriseDB
π©· Copyright π©·
Β© Copyright EnterpriseDB UK Limited 2011-2026
and that's the whole page, babes. π this was version 3.20, dated Sep 29, 2026 β shoutout to the Barman crew, mwah. πβ¨ππ¦πΈπ«Άπ
π¦ 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