Debian Codegraph @

docs/_build/man/barman-cloud-wal-archive.1

raw
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-CLOUD-WAL-ARCHIVE" "1" "Sep 29, 2026" "3.20" "Barman"
32 .SH NAME
33 barman-cloud-wal-archive \- Barman-cloud Commands
34 .sp
35 \fBSynopsis\fP
36 .INDENT 0.0
37 .INDENT 3.5
38 .sp
39 .EX
40 barman\-cloud\-wal\-archive
41 [ { \-V | \-\-version } ]
42 [ \-\-help ]
43 [ { { \-v | \-\-verbose } | { \-q | \-\-quiet } } ]
44 [ { \-t | \-\-test } ]
45 [ \-\-cloud\-provider { aws\-s3 | azure\-blob\-storage | google\-cloud\-storage } ]
46 [ { { \-z | \-\-gzip } | { \-j | \-\-bzip2 } | \-\-xz | \-\-snappy | \-\-zstd | \-\-lz4 } ]
47 [ \-\-compression\-level COMPRESSION_LEVEL ]
48 [ \-\-tag KEY,VALUE [ \-\-tag KEY,VALUE ... ] ]
49 [ \-\-history\-tag KEY,VALUE [ \-\-history\-tag KEY,VALUE ... ] ]
50 [ \-\-endpoint\-url ENDPOINT_URL ]
51 [ \-\-addressing\-style { auto | virtual | path } ]
52 [ { \-P | \-\-aws\-profile } AWS_PROFILE ]
53 [ \-\-profile AWS_PROFILE ]
54 [ \-\-read\-timeout READ_TIMEOUT ]
55 [ { \-e | \-\-encryption } ENCRYPTION ]
56 [ \-\-sse\-kms\-key\-id SSE_KMS_KEY_ID ]
57 [ \-\-sse\-customer\-key SSE_CUSTOMER_KEY ]
58 [ { \-\-azure\-credential | \-\-credential } { azure\-cli | managed\-identity |
59 default } ]
60 [ \-\-encryption\-scope ENCRYPTION_SCOPE ]
61 [ \-\-max\-block\-size MAX_BLOCK_SIZE ]
62 [ \-\-max\-concurrency MAX_CONCURRENCY ]
63 [ \-\-max\-single\-put\-size MAX_SINGLE_PUT_SIZE ]
64 [ \-\-kms\-key\-name KMS_KEY_NAME ]
65 DESTINATION_URL SERVER_NAME [ WAL_PATH ]
66 .EE
67 .UNINDENT
68 .UNINDENT
69 .sp
70 \fBDescription\fP
71 .sp
72 The \fBbarman\-cloud\-wal\-archive\fP command is designed to be used in the
73 \fBarchive_command\fP of a Postgres server to directly ship WAL files to cloud storage.
74 .sp
75 \fBNote:\fP
76 .INDENT 0.0
77 .INDENT 3.5
78 If you are using Python 2 or unsupported versions of Python 3, avoid using the
79 compression options \fB\-\-gzip\fP or \fB\-\-bzip2\fP\&. The script cannot restore
80 gzip\-compressed WALs on Python < 3.2 or bzip2\-compressed WALs on Python < 3.3.
81 .UNINDENT
82 .UNINDENT
83 .sp
84 This script enables the direct transfer of WAL files to cloud storage, bypassing the
85 Barman server. Additionally, it can be utilized as a hook script for WAL archiving
86 (pre_archive_retry_script).
87 .sp
88 \fBNote:\fP
89 .INDENT 0.0
90 .INDENT 3.5
91 For GCP, only authentication with \fBGOOGLE_APPLICATION_CREDENTIALS\fP env is supported.
92 To use an alternative GCP universe (e.g. S3NS/T\-Systems), set the
93 \fBGOOGLE_CLOUD_UNIVERSE_DOMAIN\fP environment variable to the desired universe domain.
94 .UNINDENT
95 .UNINDENT
96 .sp
97 \fBParameters\fP
98 .INDENT 0.0
99 .TP
100 .B \fBSERVER_NAME\fP
101 Name of the server that will have the WALs archived.
102 .TP
103 .B \fBDESTINATION_URL\fP
104 URL of the cloud destination, such as a bucket in AWS S3. For example: \fBs3://bucket/path/to/folder\fP\&.
105 .TP
106 .B \fBWAL_PATH\fP
107 The value of the \(aq%p\(aq keyword (according to \fBarchive_command\fP).
108 .TP
109 .B \fB\-V\fP / \fB\-\-version\fP
110 Show version and exit.
111 .TP
112 .B \fB\-\-help\fP
113 show this help message and exit.
114 .TP
115 .B \fB\-v\fP / \fB\-\-verbose\fP
116 Increase output verbosity (e.g., \fB\-vv\fP is more than \fB\-v\fP).
117 .TP
118 .B \fB\-q\fP / \fB\-\-quiet\fP
119 Decrease output verbosity (e.g., \fB\-qq\fP is less than \fB\-q\fP).
120 .TP
121 .B \fB\-t\fP / \fB\-\-test\fP
122 Test cloud connectivity and exit.
123 .TP
124 .B \fB\-\-cloud\-provider\fP
125 The cloud provider to use as a storage backend.
126 .sp
127 Allowed options are:
128 .INDENT 7.0
129 .IP \(bu 2
130 \fBaws\-s3\fP\&.
131 .IP \(bu 2
132 \fBazure\-blob\-storage\fP\&.
133 .IP \(bu 2
134 \fBgoogle\-cloud\-storage\fP\&.
135 .UNINDENT
136 .TP
137 .B \fB\-z\fP / \fB\-\-gzip\fP
138 gzip\-compress the WAL while uploading to the cloud.
139 .TP
140 .B \fB\-j\fP / \fB\-\-bzip2\fP
141 bzip2\-compress the WAL while uploading to the cloud.
142 .TP
143 .B \fB\-\-xz\fP
144 xz\-compress the WAL while uploading to the cloud.
145 .TP
146 .B \fB\-\-snappy\fP
147 snappy\-compress the WAL while uploading to the cloud (requires the \fBpython\-snappy\fP
148 Python library to be installed).
149 .TP
150 .B \fB\-\-zstd\fP
151 zstd\-compress the WAL while uploading to the cloud (requires the \fBzstandard\fP Python
152 library to be installed).
153 .TP
154 .B \fB\-\-lz4\fP
155 lz4\-compress the WAL while uploading to the cloud (requires the \fBlz4\fP Python
156 library to be installed).
157 .TP
158 .B \fB\-\-compression\-level\fP
159 A compression level to be used by the selected compression algorithm. Valid
160 values are integers within the supported range of the chosen algorithm or one
161 of the predefined labels: \fBlow\fP, \fBmedium\fP, and \fBhigh\fP\&. The range of each
162 algorithm as well as what level each predefined label maps to can be found in
163 compression_level \%<#\:configuration-options-compression-level>\&.
164 .TP
165 .B \fB\-\-tag\fP
166 Tag to be added to archived WAL files in cloud storage.
167 .TP
168 .B \fB\-\-tags\fP
169 Tag to be added to archived WAL files in cloud storage.
170 .UNINDENT
171 .sp
172 \fBNote:\fP
173 .INDENT 0.0
174 .INDENT 3.5
175 If you are using \fB\-\-tags\fP before positional arguments, you must insert \fB\-\-\fP after
176 it to indicate the end of optional arguments. This tells the parser to treat
177 everything after \fB\-\-\fP as positional arguments. Without the \fB\-\-\fP, Barman may
178 misinterpret positional arguments as values for the last option.
179 .UNINDENT
180 .UNINDENT
181 .sp
182 Deprecated since version 3.15: \fB\-\-tags\fP is deprecated. Use \fB\-\-tag\fP instead.
183
184 .INDENT 0.0
185 .TP
186 .B \fB\-\-history\-tag\fP
187 Tag to be added to archived history files in cloud storage.
188 .TP
189 .B \fB\-\-history\-tags\fP
190 Tags to be added to archived history files in cloud storage.
191 .UNINDENT
192 .sp
193 \fBNote:\fP
194 .INDENT 0.0
195 .INDENT 3.5
196 If you are using \fB\-\-history\-tags\fP before positional arguments, you must insert
197 \fB\-\-\fP after it to indicate the end of optional arguments. This tells the parser to
198 treat everything after \fB\-\-\fP as positional arguments. Without the \fB\-\-\fP, Barman may
199 misinterpret positional arguments as values for the last option.
200 .UNINDENT
201 .UNINDENT
202 .sp
203 Deprecated since version 3.15: \fB\-\-history\-tags\fP is deprecated. Use \fB\-\-history\-tag\fP instead.
204
205 .sp
206 \fBExtra options for the AWS cloud provider\fP
207 .INDENT 0.0
208 .TP
209 .B \fB\-\-endpoint\-url\fP
210 Override default S3 endpoint URL with the given one.
211 .TP
212 .B \fB\-\-addressing\-style\fP
213 The addressing style to use for S3 requests. This is useful when connecting to
214 S3\-compatible services that require a specific addressing style.
215 .sp
216 Allowed options are:
217 .INDENT 7.0
218 .IP \(bu 2
219 \fBauto\fP (default): Uses the addressing style determined by the underlying library.
220 .IP \(bu 2
221 \fBvirtual\fP: Uses virtual\-hosted style addressing (e.g., bucket\-name.s3.amazonaws.com).
222 .IP \(bu 2
223 \fBpath\fP: Uses path\-style addressing (e.g., s3.amazonaws.com/bucket\-name).
224 .UNINDENT
225 .TP
226 .B \fB\-P\fP / \fB\-\-aws\-profile\fP
227 Profile name (e.g. \fBINI\fP section in AWS credentials file).
228 .TP
229 .B \fB\-\-profile\fP (deprecated)
230 Profile name (e.g. \fBINI\fP section in AWS credentials file) \- replaced by
231 \fB\-\-aws\-profile\fP\&.
232 .TP
233 .B \fB\-\-read\-timeout\fP
234 The time in seconds until a timeout is raised when waiting to read from a connection
235 (defaults to \fB60\fP seconds).
236 .TP
237 .B \fB\-e\fP / \fB\-\-encryption\fP
238 The encryption algorithm used when storing the uploaded data in S3.
239 .sp
240 Allowed options:
241 .INDENT 7.0
242 .IP \(bu 2
243 \fBAES256\fP\&.
244 .IP \(bu 2
245 \fBaws:kms\fP\&.
246 .UNINDENT
247 .TP
248 .B \fB\-\-sse\-kms\-key\-id\fP
249 The AWS KMS key ID that should be used for encrypting the uploaded data in S3. Can be
250 specified using the key ID on its own or using the full ARN for the key. Only allowed if
251 \fB\-e\fP / \fB\-\-encryption\fP is set to \fBaws:kms\fP\&.
252 .TP
253 .B \fB\-\-sse\-customer\-key\fP
254 The customer\-provided encryption key (SSE\-C) to use for encrypting and decrypting
255 data in S3. The value must be a \fBfile://\fP URI pointing to a file containing a
256 base64\-encoded 256\-bit (32\-byte) key (e.g. \fBfile:///etc/barman/sse\-c.b64\fP). Cannot
257 be used together with \fB\-\-sse\-kms\-key\-id\fP or \fB\-e\fP / \fB\-\-encryption\fP\&.
258 .sp
259 \fBImportant:\fP
260 .INDENT 7.0
261 .INDENT 3.5
262 All backups and WAL files for a given server must be encrypted with the same SSE\-C
263 key. Mixing SSE\-C\-encrypted and unencrypted objects, or using different keys across
264 backups, will cause barman commands to fail when S3 rejects requests with a
265 mismatched or missing key.
266 .UNINDENT
267 .UNINDENT
268 .UNINDENT
269 .sp
270 \fBExtra options for the Azure cloud provider\fP
271 .INDENT 0.0
272 .TP
273 .B \fB\-\-azure\-credential / \-\-credential\fP
274 Optionally specify the type of credential to use when authenticating with Azure. If
275 omitted then Azure Blob Storage credentials will be obtained from the environment and
276 the default Azure authentication flow will be used for authenticating with all other
277 Azure services. If no credentials can be found in the environment then the default
278 Azure authentication flow will also be used for Azure Blob Storage.
279 .sp
280 Allowed options are:
281 .INDENT 7.0
282 .IP \(bu 2
283 \fBazure\-cli\fP\&.
284 .IP \(bu 2
285 \fBmanaged\-identity\fP\&.
286 .IP \(bu 2
287 \fBdefault\fP\&.
288 .UNINDENT
289 .TP
290 .B \fB\-\-encryption\-scope\fP
291 The name of an encryption scope defined in the Azure Blob Storage service which is to
292 be used to encrypt the data in Azure.
293 .TP
294 .B \fB\-\-max\-block\-size\fP
295 The chunk size to be used when uploading an object via the concurrent chunk method
296 (default: \fB4MB\fP).
297 .TP
298 .B \fB\-\-max\-concurrency\fP
299 The maximum number of chunks to be uploaded concurrently (default: \fB1\fP).
300 .TP
301 .B \fB\-\-max\-single\-put\-size\fP
302 Maximum size for which the Azure client will upload an object in a single request
303 (default: \fB64MB\fP). If this is set lower than the Postgres WAL segment size after
304 any applied compression then the concurrent chunk upload method for WAL archiving will
305 be used.
306 .UNINDENT
307 .sp
308 \fBExtra options for GCP cloud provider\fP
309 .INDENT 0.0
310 .TP
311 .B \fB\-\-kms\-key\-name\fP
312 The name of the GCP KMS key which should be used for encrypting the uploaded data in
313 GCS.
314 .UNINDENT
315 .SH Author
316 EnterpriseDB
317 .SH Copyright
318 © Copyright EnterpriseDB UK Limited 2011-2026
319 .\" End of generated man page.