Debian Codegraph @

docs/_build/man/barman-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-WAL-RESTORE" "1" "Sep 29, 2026" "3.20" "Barman"
32 .SH NAME
33 barman-wal-restore \- Barman-cli Commands
34 .SH SYNOPSIS
35 .INDENT 0.0
36 .INDENT 3.5
37 .sp
38 .EX
39 barman\-wal\-restore
40 [ { \-h | \-\-help } ]
41 [ { \-V | \-\-version } ]
42 [ { \-U | \-\-user } USER ]
43 [ \-\-port PORT ]
44 [ { \-s | \-\-sleep } SECONDS ]
45 [ { \-p | \-\-parallel } JOBS ]
46 [ \-\-spool\-dir SPOOL_DIR ]
47 [ { \-P | \-\-partial } ]
48 [ { { \-z | \-\-gzip } | { \-j | \-\-bzip2 } | \-\-keep\-compression } ]
49 [ { \-c | \-\-config } CONFIG ]
50 [ { \-t | \-\-test } ]
51 BARMAN_HOST SERVER_NAME WAL_NAME WAL_DEST
52 .EE
53 .UNINDENT
54 .UNINDENT
55 .SH DESCRIPTION
56 .sp
57 This script serves as a \fBrestore_command\fP for Postgres servers, enabling the
58 retrieval of WAL files through Barman\(aqs \fBget\-wal\fP feature. It establishes an SSH
59 connection to the Barman host and facilitates the integration of Barman within
60 Postgres clusters, enhancing 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 \fB1\fP for remote get\-wal command \fBFAILURE\fP, likely because the requested WAL could
68 not be found.
69 .IP \(bu 2
70 \fB2\fP for ssh connection \fBFAILURE\fP\&.
71 .IP \(bu 2
72 Any other \fBnon\-zero\fP for \fBFAILURE\fP\&.
73 .UNINDENT
74 .SH PARAMETERS
75 .INDENT 0.0
76 .TP
77 .B \fBSERVER_NAME\fP
78 The server name configured in Barman for the Postgres server from which the
79 WAL file is retrieved.
80 .TP
81 .B \fBBARMAN_HOST\fP
82 The host of the Barman server.
83 .TP
84 .B \fBWAL_NAME\fP
85 The value of the \(aq%f\(aq keyword (according to \fBrestore_command\fP).
86 .TP
87 .B \fBWAL_DEST\fP
88 The value of the \(aq%p\(aq keyword (according to \fBrestore_command\fP).
89 .TP
90 .B \fB\-h\fP / \fB\-\-help\fP
91 Display a help message and exit.
92 .TP
93 .B \fB\-V\fP / \fB\-\-version\fP
94 Display the program\(aqs version number and exit.
95 .TP
96 .B \fB\-U\fP / \fB\-\-user\fP
97 Specify the user for the SSH connection to the Barman server (defaults to
98 \fBbarman\fP).
99 .TP
100 .B \fB\-\-port\fP
101 Define the port used for the SSH connection to the Barman server.
102 .TP
103 .B \fB\-s\fP / \fB\-\-sleep\fP
104 Pause for \fBSECONDS\fP after a failed \fBget\-wal\fP request (defaults to \fB0\fP \- no
105 wait).
106 .TP
107 .B \fB\-p\fP / \fB\-\-parallel\fP
108 Specifies the number of WAL files to fetch in parallel. Default is \fB0\fP (disabled).
109 When set to a value greater than \fB1\fP, fetches the requested WAL file along with the
110 next \fBN \- 1\fP files simultaneously. The additional files are staged in a local spool
111 directory (see \fB\-\-spool\-dir\fP) so that subsequent restore requests can be served
112 immediately from local storage.
113 .TP
114 .B \fB\-\-spool\-dir\fP
115 Directory used for staging extra WALs fetched when using \fB\-\-parallel\fP\&. Default is
116 \fB/var/tmp/walrestore\fP\&.
117 .TP
118 .B \fB\-P\fP / \fB\-\-partial\fP
119 Include partial WAL files (.partial) in the retrieval.
120 .TP
121 .B \fB\-z\fP / \fB\-\-gzip\fP
122 Transfer WAL files compressed with \fBgzip\fP\&.
123 .TP
124 .B \fB\-j\fP / \fB\-\-bzip2\fP
125 Transfer WAL files compressed with \fBbzip2\fP\&.
126 .TP
127 .B \fB\-\-keep\-compression\fP
128 If specified, compressed files will be trasnfered as\-is and decompressed on arrival
129 on the client\-side.
130 .TP
131 .B \fB\-c\fP / \fB\-\-config\fP
132 Specify the configuration file on the Barman server.
133 .TP
134 .B \fB\-t\fP / \fB\-\-test\fP
135 Test the connection and configuration of the specified Postgres server in Barman to
136 ensure it is ready to receive WAL files. This option ignores the mandatory arguments
137 \fBWAL_NAME\fP and \fBWAL_DEST\fP\&.
138 .UNINDENT
139 .sp
140 \fBWarning:\fP
141 .INDENT 0.0
142 .INDENT 3.5
143 \fB\-z\fP / \fB\-\-gzip\fP and \fB\-j\fP / \fB\-\-bzip2\fP options are deprecated and will be
144 removed in the future. For WAL compression, please make sure to enable it directly
145 on the Barman server via the \fBcompression\fP configuration option.
146 .UNINDENT
147 .UNINDENT
148 .SH Author
149 EnterpriseDB
150 .SH Copyright
151 © Copyright EnterpriseDB UK Limited 2011-2026
152 .\" End of generated man page.