| 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-RESTORE" "1" "Sep 29, 2026" "3.20" "Barman" |
| 32 |
.SH NAME |
| 33 |
barman-cloud-restore \- Barman-cloud Commands |
| 34 |
.sp |
| 35 |
\fBSynopsis\fP |
| 36 |
.INDENT 0.0 |
| 37 |
.INDENT 3.5 |
| 38 |
.sp |
| 39 |
.EX |
| 40 |
barman\-cloud\-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 | default } ] |
| 53 |
[ \-\-snapshot\-recovery\-instance SNAPSHOT_RECOVERY_INSTANCE ] |
| 54 |
[ \-\-snapshot\-recovery\-zone GCP_ZONE ] |
| 55 |
[ \-\-aws\-region AWS_REGION ] |
| 56 |
[ \-\-gcp\-zone GCP_ZONE ] |
| 57 |
[ \-\-azure\-resource\-group AZURE_RESOURCE_GROUP ] |
| 58 |
[ \-\-tablespace NAME:LOCATION [ \-\-tablespace NAME:LOCATION ... ] ] |
| 59 |
[ \-\-target\-lsn LSN ] |
| 60 |
[ \-\-target\-time TIMESTAMP ] |
| 61 |
[ \-\-target\-tli TLI ] |
| 62 |
SOURCE_URL SERVER_NAME BACKUP_ID RECOVERY_DESTINATION |
| 63 |
.EE |
| 64 |
.UNINDENT |
| 65 |
.UNINDENT |
| 66 |
.sp |
| 67 |
\fBDescription\fP |
| 68 |
.sp |
| 69 |
Use this script to restore a backup directly from cloud storage that was created with |
| 70 |
the \fBbarman\-cloud\-backup\fP command. Additionally, this script can prepare for recovery |
| 71 |
from a snapshot backup by verifying that attached disks were cloned from the correct |
| 72 |
snapshots and by downloading the backup label from object storage. |
| 73 |
.sp |
| 74 |
This command does not automatically prepare Postgres for recovery. You must manually |
| 75 |
manage any PITR \%<#\:term-PITR> options, custom \fBrestore_command\fP values, signal files, or |
| 76 |
required WAL files to ensure Postgres starts, either manually or using external tools. |
| 77 |
.sp |
| 78 |
\fBNote:\fP |
| 79 |
.INDENT 0.0 |
| 80 |
.INDENT 3.5 |
| 81 |
For GCP, only authentication with \fBGOOGLE_APPLICATION_CREDENTIALS\fP env is supported. |
| 82 |
To use an alternative GCP universe (e.g. S3NS/T\-Systems), set the |
| 83 |
\fBGOOGLE_CLOUD_UNIVERSE_DOMAIN\fP environment variable to the desired universe domain. |
| 84 |
.UNINDENT |
| 85 |
.UNINDENT |
| 86 |
.sp |
| 87 |
\fBParameters\fP |
| 88 |
.INDENT 0.0 |
| 89 |
.TP |
| 90 |
.B \fBSERVER_NAME\fP |
| 91 |
Name of the server that holds the backup to be restored. |
| 92 |
.TP |
| 93 |
.B \fBSOURCE_URL\fP |
| 94 |
URL of the cloud source, such as a bucket in AWS S3. For example: |
| 95 |
\fBs3://bucket/path/to/folder\fP\&. |
| 96 |
.TP |
| 97 |
.B \fBBACKUP_ID\fP |
| 98 |
The ID of the backup to be restored. You can use a shortcut instead of the backup ID. |
| 99 |
Besides that, you can use \fBauto\fP to have Barman automatically find the most suitable |
| 100 |
backup for the restore operation. |
| 101 |
.TP |
| 102 |
.B \fBRECOVERY_DESTINATION\fP |
| 103 |
The path to a directory for recovery. |
| 104 |
.TP |
| 105 |
.B \fB\-V\fP / \fB\-\-version\fP |
| 106 |
Show version and exit. |
| 107 |
.TP |
| 108 |
.B \fB\-\-help\fP |
| 109 |
show this help message and exit. |
| 110 |
.TP |
| 111 |
.B \fB\-v\fP / \fB\-\-verbose\fP |
| 112 |
Increase output verbosity (e.g., \fB\-vv\fP is more than \fB\-v\fP). |
| 113 |
.TP |
| 114 |
.B \fB\-q\fP / \fB\-\-quiet\fP |
| 115 |
Decrease output verbosity (e.g., \fB\-qq\fP is less than \fB\-q\fP). |
| 116 |
.TP |
| 117 |
.B \fB\-t\fP / \fB\-\-test\fP |
| 118 |
Test cloud connectivity and exit. |
| 119 |
.TP |
| 120 |
.B \fB\-\-cloud\-provider\fP |
| 121 |
The cloud provider to use as a storage backend. |
| 122 |
.sp |
| 123 |
Allowed options are: |
| 124 |
.INDENT 7.0 |
| 125 |
.IP \(bu 2 |
| 126 |
\fBaws\-s3\fP\&. |
| 127 |
.IP \(bu 2 |
| 128 |
\fBazure\-blob\-storage\fP\&. |
| 129 |
.IP \(bu 2 |
| 130 |
\fBgoogle\-cloud\-storage\fP\&. |
| 131 |
.UNINDENT |
| 132 |
.TP |
| 133 |
.B \fB\-\-snapshot\-recovery\-instance\fP |
| 134 |
Instance where the disks recovered from the snapshots are attached. |
| 135 |
.TP |
| 136 |
.B \fB\-\-tablespace\fP |
| 137 |
Tablespace relocation rule. |
| 138 |
.TP |
| 139 |
.B \fB\-\-target\-lsn\fP |
| 140 |
The recovery target lsn, e.g., \fB3/64000000\fP\&. |
| 141 |
.TP |
| 142 |
.B \fB\-\-target\-time\fP |
| 143 |
The recovery target timestamp with or without timezone, in the format \fB%Y\-%m\-%d %H:%M:%S\fP\&. |
| 144 |
.TP |
| 145 |
.B \fB\-\-target\-tli\fP |
| 146 |
The recovery target timeline. |
| 147 |
.UNINDENT |
| 148 |
.sp |
| 149 |
\fBExtra options for the AWS cloud provider\fP |
| 150 |
.INDENT 0.0 |
| 151 |
.TP |
| 152 |
.B \fB\-\-endpoint\-url\fP |
| 153 |
Override default S3 endpoint URL with the given one. |
| 154 |
.TP |
| 155 |
.B \fB\-\-addressing\-style\fP |
| 156 |
The addressing style to use for S3 requests. This is useful when connecting to |
| 157 |
S3\-compatible services that require a specific addressing style. |
| 158 |
.sp |
| 159 |
Allowed options are: |
| 160 |
.INDENT 7.0 |
| 161 |
.IP \(bu 2 |
| 162 |
\fBauto\fP (default): Uses the addressing style determined by the underlying library. |
| 163 |
.IP \(bu 2 |
| 164 |
\fBvirtual\fP: Uses virtual\-hosted style addressing (e.g., bucket\-name.s3.amazonaws.com). |
| 165 |
.IP \(bu 2 |
| 166 |
\fBpath\fP: Uses path\-style addressing (e.g., s3.amazonaws.com/bucket\-name). |
| 167 |
.UNINDENT |
| 168 |
.TP |
| 169 |
.B \fB\-P\fP / \fB\-\-aws\-profile\fP |
| 170 |
Profile name (e.g. \fBINI\fP section in AWS credentials file). |
| 171 |
.TP |
| 172 |
.B \fB\-\-profile\fP (deprecated) |
| 173 |
Profile name (e.g. \fBINI\fP section in AWS credentials file) \- replaced by |
| 174 |
\fB\-\-aws\-profile\fP\&. |
| 175 |
.TP |
| 176 |
.B \fB\-\-read\-timeout\fP |
| 177 |
The time in seconds until a timeout is raised when waiting to read from a connection |
| 178 |
(defaults to \fB60\fP seconds). |
| 179 |
.TP |
| 180 |
.B \fB\-\-sse\-customer\-key\fP |
| 181 |
The customer\-provided encryption key (SSE\-C) to use for decrypting data in S3. The |
| 182 |
value must be a \fBfile://\fP URI pointing to a file containing a base64\-encoded 256\-bit |
| 183 |
(32\-byte) key (e.g. \fBfile:///etc/barman/sse\-c.b64\fP). |
| 184 |
.sp |
| 185 |
\fBImportant:\fP |
| 186 |
.INDENT 7.0 |
| 187 |
.INDENT 3.5 |
| 188 |
All backups and WAL files for a given server must be encrypted with the same SSE\-C |
| 189 |
key. Mixing SSE\-C\-encrypted and unencrypted objects, or using different keys across |
| 190 |
backups, will cause barman commands to fail when S3 rejects requests with a |
| 191 |
mismatched or missing key. |
| 192 |
.UNINDENT |
| 193 |
.UNINDENT |
| 194 |
.TP |
| 195 |
.B \fB\-\-aws\-region\fP |
| 196 |
The name of the AWS region containing the EC2 VM and storage volumes defined by the |
| 197 |
\fB\-\-snapshot\-instance\fP and \fB\-\-snapshot\-disk\fP arguments. |
| 198 |
.UNINDENT |
| 199 |
.sp |
| 200 |
\fBExtra options for the Azure cloud provider\fP |
| 201 |
.INDENT 0.0 |
| 202 |
.TP |
| 203 |
.B \fB\-\-azure\-credential / \-\-credential\fP |
| 204 |
Optionally specify the type of credential to use when authenticating with Azure. If |
| 205 |
omitted then Azure Blob Storage credentials will be obtained from the environment and |
| 206 |
the default Azure authentication flow will be used for authenticating with all other |
| 207 |
Azure services. If no credentials can be found in the environment then the default |
| 208 |
Azure authentication flow will also be used for Azure Blob Storage. |
| 209 |
.sp |
| 210 |
Allowed options are: |
| 211 |
.INDENT 7.0 |
| 212 |
.IP \(bu 2 |
| 213 |
\fBazure\-cli\fP\&. |
| 214 |
.IP \(bu 2 |
| 215 |
\fBmanaged\-identity\fP\&. |
| 216 |
.IP \(bu 2 |
| 217 |
\fBdefault\fP\&. |
| 218 |
.UNINDENT |
| 219 |
.TP |
| 220 |
.B \fB\-\-azure\-resource\-group\fP |
| 221 |
The name of the Azure resource group to which the compute instance and disks defined by |
| 222 |
the \fB\-\-snapshot\-instance\fP and \fB\-\-snapshot\-disk\fP arguments belong. |
| 223 |
.UNINDENT |
| 224 |
.sp |
| 225 |
\fBExtra options for GCP cloud provider\fP |
| 226 |
.INDENT 0.0 |
| 227 |
.TP |
| 228 |
.B \fB\-\-gcp\-zone\fP |
| 229 |
Zone of the disks from which snapshots should be taken. |
| 230 |
.TP |
| 231 |
.B \fB\-\-snapshot\-recovery\-zone\fP (deprecated) |
| 232 |
Zone containing the instance and disks for the snapshot recovery \- replaced by |
| 233 |
\fB\-\-gcp\-zone\fP\&. |
| 234 |
.UNINDENT |
| 235 |
.SH Author |
| 236 |
EnterpriseDB |
| 237 |
.SH Copyright |
| 238 |
© Copyright EnterpriseDB UK Limited 2011-2026 |
| 239 |
.\" End of generated man page. |