| 1 |
.\" Man page generated from reStructuredText |
| 2 |
.\" by the Docutils 0.22.4 manpage writer. |
| 3 |
. |
| 4 |
. |
| 5 |
.nr rst2man-indent-level 0 |
| 6 |
. |
| 7 |
.de1 rstReportMargin |
| 8 |
\\$1 \\n[an-margin] |
| 9 |
level \\n[rst2man-indent-level] |
| 10 |
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 11 |
- |
| 12 |
\\n[rst2man-indent0] |
| 13 |
\\n[rst2man-indent1] |
| 14 |
\\n[rst2man-indent2] |
| 15 |
.. |
| 16 |
.de1 INDENT |
| 17 |
.\" .rstReportMargin pre: |
| 18 |
. RS \\$1 |
| 19 |
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] |
| 20 |
. nr rst2man-indent-level +1 |
| 21 |
.\" .rstReportMargin post: |
| 22 |
.. |
| 23 |
.de UNINDENT |
| 24 |
. RE |
| 25 |
.\" indent \\n[an-margin] |
| 26 |
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 27 |
.nr rst2man-indent-level -1 |
| 28 |
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 29 |
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u |
| 30 |
.. |
| 31 |
.TH "BARMAN-WAL-ARCHIVE" "1" "Sep 29, 2026" "3.20" "Barman" |
| 32 |
.SH NAME |
| 33 |
barman-wal-archive \- Barman-cli Commands |
| 34 |
.SH SYNOPSIS |
| 35 |
.INDENT 0.0 |
| 36 |
.INDENT 3.5 |
| 37 |
.sp |
| 38 |
.EX |
| 39 |
barman\-wal\-archive |
| 40 |
[ { \-h | \-\-help } ] |
| 41 |
[ { \-V | \-\-version } ] |
| 42 |
[ { \-U | \-\-user } USER ] |
| 43 |
[ \-\-port PORT ] |
| 44 |
[ { { \-z | \-\-gzip } | { \-j | \-\-bzip2 } | \-\-xz | \-\-snappy | \-\-zstd | \-\-lz4 } ] |
| 45 |
[ \-\-compression\-level COMPRESSION_LEVEL ] |
| 46 |
[ { \-c | \-\-config } CONFIG ] |
| 47 |
[ { \-t | \-\-test } ] |
| 48 |
[ \-\-md5 ] |
| 49 |
[ { \-p | \-\-parallel } JOBS ] |
| 50 |
[ \-\-prefetch\-cache\-dir PREFETCH_CACHE_DIR ] |
| 51 |
BARMAN_HOST SERVER_NAME WAL_PATH |
| 52 |
.EE |
| 53 |
.UNINDENT |
| 54 |
.UNINDENT |
| 55 |
.SH DESCRIPTION |
| 56 |
.sp |
| 57 |
This script can be utilized in the \fBarchive_command\fP of a Postgres server to |
| 58 |
transfer WAL files to a Barman host using the \fBput\-wal\fP command (introduced in Barman |
| 59 |
2.6). It establishes an SSH connection to the Barman host, enabling seamless integration |
| 60 |
of Barman within Postgres clusters for improved business continuity. |
| 61 |
.sp |
| 62 |
\fBExit Statuses\fP are: |
| 63 |
.INDENT 0.0 |
| 64 |
.IP \(bu 2 |
| 65 |
\fB0\fP for \fBSUCCESS\fP\&. |
| 66 |
.IP \(bu 2 |
| 67 |
\fBnon\-zero\fP for \fBFAILURE\fP\&. |
| 68 |
.UNINDENT |
| 69 |
.SH PARAMETERS |
| 70 |
.INDENT 0.0 |
| 71 |
.TP |
| 72 |
.B \fBSERVER_NAME\fP |
| 73 |
The server name configured in Barman for the Postgres server from which |
| 74 |
the WAL file is retrieved. |
| 75 |
.TP |
| 76 |
.B \fBBARMAN_HOST\fP |
| 77 |
The host of the Barman server. |
| 78 |
.TP |
| 79 |
.B \fBWAL_PATH\fP |
| 80 |
The value of the \(aq%p\(aq keyword (according to \fBarchive_command\fP). |
| 81 |
.TP |
| 82 |
.B \fB\-h\fP / \fB\-\-help\fP |
| 83 |
Display a help message and exit. |
| 84 |
.TP |
| 85 |
.B \fB\-V\fP / \fB\-\-version\fP |
| 86 |
Display the program\(aqs version number and exit. |
| 87 |
.TP |
| 88 |
.B \fB\-U\fP / \fB\-\-user\fP |
| 89 |
Specify the user for the SSH connection to the Barman server (defaults to |
| 90 |
\fBbarman\fP). |
| 91 |
.TP |
| 92 |
.B \fB\-\-port\fP |
| 93 |
Define the port used for the SSH connection to the Barman server. |
| 94 |
.TP |
| 95 |
.B \fB\-z\fP / \fB\-\-gzip\fP |
| 96 |
gzip\-compress the WAL file before sending it to the Barman server. |
| 97 |
.TP |
| 98 |
.B \fB\-j\fP / \fB\-\-bzip2\fP |
| 99 |
bzip2\-compress the WAL file before sending it to the Barman server. |
| 100 |
.TP |
| 101 |
.B \fB\-\-xz\fP |
| 102 |
xz\-compress the WAL file before sending it to the Barman server. |
| 103 |
.TP |
| 104 |
.B \fB\-\-snappy\fP |
| 105 |
snappy\-compress the WAL file before sending it to the Barman server (requires the |
| 106 |
\fBpython\-snappy\fP Python library to be installed). |
| 107 |
.TP |
| 108 |
.B \fB\-\-zstd\fP |
| 109 |
zstd\-compress the WAL file before sending it to the Barman server (requires the |
| 110 |
\fBzstandard\fP Python library to be installed). |
| 111 |
.TP |
| 112 |
.B \fB\-\-lz4\fP |
| 113 |
lz4\-compress the WAL file before sending it to the Barman server (requires the |
| 114 |
\fBlz4\fP Python library to be installed). |
| 115 |
.TP |
| 116 |
.B \fB\-\-compression\-level\fP |
| 117 |
A compression level to be used by the selected compression algorithm. Valid |
| 118 |
values are integers within the supported range of the chosen algorithm or one |
| 119 |
of the predefined labels: \fBlow\fP, \fBmedium\fP, and \fBhigh\fP\&. The range of each |
| 120 |
algorithm as well as what level each predefined label maps to can be found in |
| 121 |
compression_level \%<#\:configuration-options-compression-level>\&. |
| 122 |
.TP |
| 123 |
.B \fB\-c\fP / \fB\-\-config\fP |
| 124 |
Specify the configuration file on the Barman server. |
| 125 |
.TP |
| 126 |
.B \fB\-t\fP / \fB\-\-test\fP |
| 127 |
Test the connection and configuration of the specified Postgres server in Barman to |
| 128 |
ensure it is ready to receive WAL files. This option ignores the mandatory argument |
| 129 |
\fBWAL_PATH\fP\&. |
| 130 |
.TP |
| 131 |
.B \fB\-\-md5\fP |
| 132 |
Use MD5 instead of SHA256 as the hash algorithm to calculate the checksum of the WAL |
| 133 |
file when transmitting it to the Barman server. This is used to maintain |
| 134 |
compatibility with older server versions, as older versions of Barman server used to |
| 135 |
support only MD5. |
| 136 |
.TP |
| 137 |
.B \fB\-p\fP / \fB\-\-parallel\fP |
| 138 |
Specify the maximum number of WAL files to archive in parallel. Defaults to \fB0\fP |
| 139 |
(no parallelism). |
| 140 |
.TP |
| 141 |
.B \fB\-\-prefetch\-cache\-dir\fP |
| 142 |
Directory where to store cache metadata when using \fB\-\-parallel\fP\&. Defaults to |
| 143 |
\fB/tmp/barman\-SERVER_NAME\-COMPUTED_HASH\fP\&. |
| 144 |
.UNINDENT |
| 145 |
.sp |
| 146 |
\fBNote:\fP |
| 147 |
.INDENT 0.0 |
| 148 |
.INDENT 3.5 |
| 149 |
When compression is enabled in \fBbarman\-wal\-archive\fP, it takes precedence over the |
| 150 |
compression settings configured on the Barman server, if they differ. |
| 151 |
.UNINDENT |
| 152 |
.UNINDENT |
| 153 |
.sp |
| 154 |
\fBImportant:\fP |
| 155 |
.INDENT 0.0 |
| 156 |
.INDENT 3.5 |
| 157 |
When compression is enabled in \fBbarman\-wal\-archive\fP, it is performed on the client |
| 158 |
side, before the file is sent to Barman. Be mindful of the database server\(aqs load and |
| 159 |
the chosen compression algorithm and level, as higher compression can delay WAL |
| 160 |
shipping, causing WAL files to accumulate. |
| 161 |
.UNINDENT |
| 162 |
.UNINDENT |
| 163 |
.SH Author |
| 164 |
EnterpriseDB |
| 165 |
.SH Copyright |
| 166 |
© Copyright EnterpriseDB UK Limited 2011-2026 |
| 167 |
.\" End of generated man page. |