Debian Codegraph @

docs/_build/man/barman-cloud-wal-restore.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-RESTORE" "1" "Sep 29, 2026" "3.20" "Barman"
32 .SH NAME
33 barman-cloud-wal-restore \- Barman-cloud Commands
34 .sp
35 \fBSynopsis\fP
36 .INDENT 0.0
37 .INDENT 3.5
38 .sp
39 .EX
40 barman\-cloud\-wal\-restore
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 [ \-\-endpoint\-url ENDPOINT_URL ]
47 [ \-\-addressing\-style { auto | virtual | path } ]
48 [ { \-P | \-\-aws\-profile } AWS_PROFILE ]
49 [ \-\-profile AWS_PROFILE ]
50 [ \-\-read\-timeout READ_TIMEOUT ]
51 [ \-\-sse\-customer\-key SSE_CUSTOMER_KEY ]
52 [ { \-\-azure\-credential | \-\-credential } { azure\-cli | managed\-identity
53 | default } ]
54 [ \-\-no\-partial ]
55 [ { \-p, \-\-parallel } PARALLEL ]
56 [ \-\-spool\-dir SPOOL_DIR ]
57 SOURCE_URL SERVER_NAME WAL_NAME WAL_DEST
58 .EE
59 .UNINDENT
60 .UNINDENT
61 .sp
62 \fBDescription\fP
63 .sp
64 The \fBbarman\-cloud\-wal\-restore\fP script functions as the \fBrestore_command\fP for
65 retrieving WAL files from cloud storage and placing them directly into a Postgres
66 standby server, bypassing the Barman server.
67 .sp
68 This script is used to download WAL files that were previously archived with the
69 \fBbarman\-cloud\-wal\-archive\fP command. Disable automatic download of \fB\&.partial\fP files by
70 calling \fB\-\-no\-partial\fP option.
71 .sp
72 \fBNote:\fP
73 .INDENT 0.0
74 .INDENT 3.5
75 Partial WAL files (with a \fB\&.partial\fP suffix) can appear in the object store
76 when a standby server is archiving WAL segments and is then promoted to primary.
77 At the moment of promotion, the in\-progress WAL segment has not been completed
78 yet, so Postgres archives it as a \fB\&.partial\fP file before switching to a new
79 timeline. These files represent an incomplete segment and are not suitable for
80 crash recovery on their own.
81 .sp
82 In most cases, downloading \fB\&.partial\fP files during WAL restore is harmless,
83 because Postgres knows how to handle them correctly. However, when running
84 \fBbarman\-cloud\-wal\-restore\fP on a cluster that has experienced a promotion, the
85 \fBrestore_command\fP may retrieve a \fB\&.partial\fP (after renaming it without
86 the suffix) file where a complete WAL is expected.
87 .sp
88 Use \fB\-\-no\-partial\fP to suppress the download of \fB\&.partial\fP files in this
89 scenario, which will cause \fBrestore_command\fP to signal to Postgres that the
90 WAL is not available, prompting it to switch to the correct timeline via a
91 timeline history file (\fB\&.history\fP) instead.
92 .UNINDENT
93 .UNINDENT
94 .sp
95 \fBImportant:\fP
96 .INDENT 0.0
97 .INDENT 3.5
98 On the target Postgres node, when \fBpg_wal\fP and the spool directory are on the
99 same filesystem, files are moved via renaming, which is faster than copying and
100 deleting. This speeds up serving WAL files significantly. If the directories are on
101 different filesystems, the process still involves copying and deleting, so there\(aqs
102 no performance gain in that case.
103 .UNINDENT
104 .UNINDENT
105 .sp
106 \fBNote:\fP
107 .INDENT 0.0
108 .INDENT 3.5
109 For GCP, only authentication with \fBGOOGLE_APPLICATION_CREDENTIALS\fP env is supported.
110 To use an alternative GCP universe (e.g. S3NS/T\-Systems), set the
111 \fBGOOGLE_CLOUD_UNIVERSE_DOMAIN\fP environment variable to the desired universe domain.
112 .UNINDENT
113 .UNINDENT
114 .sp
115 \fBParameters\fP
116 .INDENT 0.0
117 .TP
118 .B \fBSERVER_NAME\fP
119 Name of the server that will have WALs restored.
120 .TP
121 .B \fBSOURCE_URL\fP
122 URL of the cloud source, such as a bucket in AWS S3. For example: \fBs3://bucket/path/to/folder\fP\&.
123 .TP
124 .B \fBWAL_NAME\fP
125 The value of the \(aq%f\(aq keyword (according to \fBrestore_command\fP).
126 .TP
127 .B \fBWAL_DEST\fP
128 The value of the \(aq%p\(aq keyword (according to \fBrestore_command\fP).
129 .TP
130 .B \fB\-V\fP / \fB\-\-version\fP
131 Show version and exit.
132 .TP
133 .B \fB\-\-help\fP
134 show this help message and exit.
135 .TP
136 .B \fB\-v\fP / \fB\-\-verbose\fP
137 Increase output verbosity (e.g., \fB\-vv\fP is more than \fB\-v\fP).
138 .TP
139 .B \fB\-q\fP / \fB\-\-quiet\fP
140 Decrease output verbosity (e.g., \fB\-qq\fP is less than \fB\-q\fP).
141 .TP
142 .B \fB\-t\fP / \fB\-\-test\fP
143 Test cloud connectivity and exit.
144 .TP
145 .B \fB\-\-cloud\-provider\fP
146 The cloud provider to use as a storage backend.
147 .sp
148 Allowed options are:
149 .INDENT 7.0
150 .IP \(bu 2
151 \fBaws\-s3\fP\&.
152 .IP \(bu 2
153 \fBazure\-blob\-storage\fP\&.
154 .IP \(bu 2
155 \fBgoogle\-cloud\-storage\fP\&.
156 .UNINDENT
157 .TP
158 .B \fB\-\-no\-partial\fP
159 Do not download partial WAL files
160 .TP
161 .B \fB\-p\fP / \fB\-\-parallel\fP
162 Specifies the number of WAL files to fetch in parallel. Default is \fB0\fP (disabled).
163 When set to a value greater than \fB1\fP, fetches the requested WAL file along with the
164 next \fBN \- 1\fP files simultaneously. The additional files are staged in a local spool
165 directory (see \fB\-\-spool\-dir\fP) so that subsequent restore requests can be served
166 immediately from local storage.
167 .TP
168 .B \fB\-\-spool\-dir\fP
169 Directory used for staging extra WALs fetched when using \fB\-\-parallel\fP\&. Default is
170 \fB/var/tmp/walrestore\fP\&.
171 .UNINDENT
172 .sp
173 \fBExtra options for the AWS cloud provider\fP
174 .INDENT 0.0
175 .TP
176 .B \fB\-\-endpoint\-url\fP
177 Override default S3 endpoint URL with the given one.
178 .TP
179 .B \fB\-\-addressing\-style\fP
180 The addressing style to use for S3 requests. This is useful when connecting to
181 S3\-compatible services that require a specific addressing style.
182 .sp
183 Allowed options are:
184 .INDENT 7.0
185 .IP \(bu 2
186 \fBauto\fP (default): Uses the addressing style determined by the underlying library.
187 .IP \(bu 2
188 \fBvirtual\fP: Uses virtual\-hosted style addressing (e.g., bucket\-name.s3.amazonaws.com).
189 .IP \(bu 2
190 \fBpath\fP: Uses path\-style addressing (e.g., s3.amazonaws.com/bucket\-name).
191 .UNINDENT
192 .TP
193 .B \fB\-P\fP / \fB\-\-aws\-profile\fP
194 Profile name (e.g. \fBINI\fP section in AWS credentials file).
195 .TP
196 .B \fB\-\-profile\fP (deprecated)
197 Profile name (e.g. \fBINI\fP section in AWS credentials file) \- replaced by
198 \fB\-\-aws\-profile\fP\&.
199 .TP
200 .B \fB\-\-read\-timeout\fP
201 The time in seconds until a timeout is raised when waiting to read from a connection
202 (defaults to \fB60\fP seconds).
203 .TP
204 .B \fB\-\-sse\-customer\-key\fP
205 The customer\-provided encryption key (SSE\-C) to use for decrypting data in S3. The
206 value must be a \fBfile://\fP URI pointing to a file containing a base64\-encoded 256\-bit
207 (32\-byte) key (e.g. \fBfile:///etc/barman/sse\-c.b64\fP).
208 .sp
209 \fBImportant:\fP
210 .INDENT 7.0
211 .INDENT 3.5
212 All backups and WAL files for a given server must be encrypted with the same SSE\-C
213 key. Mixing SSE\-C\-encrypted and unencrypted objects, or using different keys across
214 backups, will cause barman commands to fail when S3 rejects requests with a
215 mismatched or missing key.
216 .UNINDENT
217 .UNINDENT
218 .UNINDENT
219 .sp
220 \fBExtra options for the Azure cloud provider\fP
221 .INDENT 0.0
222 .TP
223 .B \fB\-\-azure\-credential / \-\-credential\fP
224 Optionally specify the type of credential to use when authenticating with Azure. If
225 omitted then Azure Blob Storage credentials will be obtained from the environment and
226 the default Azure authentication flow will be used for authenticating with all other
227 Azure services. If no credentials can be found in the environment then the default
228 Azure authentication flow will also be used for Azure Blob Storage.
229 .sp
230 Allowed options are:
231 .INDENT 7.0
232 .IP \(bu 2
233 \fBazure\-cli\fP\&.
234 .IP \(bu 2
235 \fBmanaged\-identity\fP\&.
236 .IP \(bu 2
237 \fBdefault\fP\&.
238 .UNINDENT
239 .UNINDENT
240 .SH Author
241 EnterpriseDB
242 .SH Copyright
243 © Copyright EnterpriseDB UK Limited 2011-2026
244 .\" End of generated man page.