.\" Man page generated from reStructuredText .\" by the Docutils 0.22.4 manpage writer. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "BARMAN-CLOUD-RESTORE" "1" "Sep 29, 2026" "3.20" "Barman" .SH NAME barman-cloud-restore \- Barman-cloud Commands .sp \fBSynopsis\fP .INDENT 0.0 .INDENT 3.5 .sp .EX barman\-cloud\-restore [ { \-V | \-\-version } ] [ \-\-help ] [ { { \-v | \-\-verbose } | { \-q | \-\-quiet } } ] [ { \-t | \-\-test } ] [ \-\-cloud\-provider { aws\-s3 | azure\-blob\-storage | google\-cloud\-storage } ] [ \-\-endpoint\-url ENDPOINT_URL ] [ \-\-addressing\-style { auto | virtual | path } ] [ { \-P | \-\-aws\-profile } AWS_PROFILE ] [ \-\-profile AWS_PROFILE ] [ \-\-read\-timeout READ_TIMEOUT ] [ \-\-sse\-customer\-key SSE_CUSTOMER_KEY ] [ { \-\-azure\-credential | \-\-credential } { azure\-cli | managed\-identity | default } ] [ \-\-snapshot\-recovery\-instance SNAPSHOT_RECOVERY_INSTANCE ] [ \-\-snapshot\-recovery\-zone GCP_ZONE ] [ \-\-aws\-region AWS_REGION ] [ \-\-gcp\-zone GCP_ZONE ] [ \-\-azure\-resource\-group AZURE_RESOURCE_GROUP ] [ \-\-tablespace NAME:LOCATION [ \-\-tablespace NAME:LOCATION ... ] ] [ \-\-target\-lsn LSN ] [ \-\-target\-time TIMESTAMP ] [ \-\-target\-tli TLI ] SOURCE_URL SERVER_NAME BACKUP_ID RECOVERY_DESTINATION .EE .UNINDENT .UNINDENT .sp \fBDescription\fP .sp Use this script to restore a backup directly from cloud storage that was created with the \fBbarman\-cloud\-backup\fP command. Additionally, this script can prepare for recovery from a snapshot backup by verifying that attached disks were cloned from the correct snapshots and by downloading the backup label from object storage. .sp This command does not automatically prepare Postgres for recovery. You must manually manage any PITR \%<#\:term-PITR> options, custom \fBrestore_command\fP values, signal files, or required WAL files to ensure Postgres starts, either manually or using external tools. .sp \fBNote:\fP .INDENT 0.0 .INDENT 3.5 For GCP, only authentication with \fBGOOGLE_APPLICATION_CREDENTIALS\fP env is supported. To use an alternative GCP universe (e.g. S3NS/T\-Systems), set the \fBGOOGLE_CLOUD_UNIVERSE_DOMAIN\fP environment variable to the desired universe domain. .UNINDENT .UNINDENT .sp \fBParameters\fP .INDENT 0.0 .TP .B \fBSERVER_NAME\fP Name of the server that holds the backup to be restored. .TP .B \fBSOURCE_URL\fP URL of the cloud source, such as a bucket in AWS S3. For example: \fBs3://bucket/path/to/folder\fP\&. .TP .B \fBBACKUP_ID\fP The ID of the backup to be restored. You can use a shortcut instead of the backup ID. Besides that, you can use \fBauto\fP to have Barman automatically find the most suitable backup for the restore operation. .TP .B \fBRECOVERY_DESTINATION\fP The path to a directory for recovery. .TP .B \fB\-V\fP / \fB\-\-version\fP Show version and exit. .TP .B \fB\-\-help\fP show this help message and exit. .TP .B \fB\-v\fP / \fB\-\-verbose\fP Increase output verbosity (e.g., \fB\-vv\fP is more than \fB\-v\fP). .TP .B \fB\-q\fP / \fB\-\-quiet\fP Decrease output verbosity (e.g., \fB\-qq\fP is less than \fB\-q\fP). .TP .B \fB\-t\fP / \fB\-\-test\fP Test cloud connectivity and exit. .TP .B \fB\-\-cloud\-provider\fP The cloud provider to use as a storage backend. .sp Allowed options are: .INDENT 7.0 .IP \(bu 2 \fBaws\-s3\fP\&. .IP \(bu 2 \fBazure\-blob\-storage\fP\&. .IP \(bu 2 \fBgoogle\-cloud\-storage\fP\&. .UNINDENT .TP .B \fB\-\-snapshot\-recovery\-instance\fP Instance where the disks recovered from the snapshots are attached. .TP .B \fB\-\-tablespace\fP Tablespace relocation rule. .TP .B \fB\-\-target\-lsn\fP The recovery target lsn, e.g., \fB3/64000000\fP\&. .TP .B \fB\-\-target\-time\fP The recovery target timestamp with or without timezone, in the format \fB%Y\-%m\-%d %H:%M:%S\fP\&. .TP .B \fB\-\-target\-tli\fP The recovery target timeline. .UNINDENT .sp \fBExtra options for the AWS cloud provider\fP .INDENT 0.0 .TP .B \fB\-\-endpoint\-url\fP Override default S3 endpoint URL with the given one. .TP .B \fB\-\-addressing\-style\fP The addressing style to use for S3 requests. This is useful when connecting to S3\-compatible services that require a specific addressing style. .sp Allowed options are: .INDENT 7.0 .IP \(bu 2 \fBauto\fP (default): Uses the addressing style determined by the underlying library. .IP \(bu 2 \fBvirtual\fP: Uses virtual\-hosted style addressing (e.g., bucket\-name.s3.amazonaws.com). .IP \(bu 2 \fBpath\fP: Uses path\-style addressing (e.g., s3.amazonaws.com/bucket\-name). .UNINDENT .TP .B \fB\-P\fP / \fB\-\-aws\-profile\fP Profile name (e.g. \fBINI\fP section in AWS credentials file). .TP .B \fB\-\-profile\fP (deprecated) Profile name (e.g. \fBINI\fP section in AWS credentials file) \- replaced by \fB\-\-aws\-profile\fP\&. .TP .B \fB\-\-read\-timeout\fP The time in seconds until a timeout is raised when waiting to read from a connection (defaults to \fB60\fP seconds). .TP .B \fB\-\-sse\-customer\-key\fP The customer\-provided encryption key (SSE\-C) to use for decrypting data in S3. The value must be a \fBfile://\fP URI pointing to a file containing a base64\-encoded 256\-bit (32\-byte) key (e.g. \fBfile:///etc/barman/sse\-c.b64\fP). .sp \fBImportant:\fP .INDENT 7.0 .INDENT 3.5 All backups and WAL files for a given server must be encrypted with the same SSE\-C key. Mixing SSE\-C\-encrypted and unencrypted objects, or using different keys across backups, will cause barman commands to fail when S3 rejects requests with a mismatched or missing key. .UNINDENT .UNINDENT .TP .B \fB\-\-aws\-region\fP The name of the AWS region containing the EC2 VM and storage volumes defined by the \fB\-\-snapshot\-instance\fP and \fB\-\-snapshot\-disk\fP arguments. .UNINDENT .sp \fBExtra options for the Azure cloud provider\fP .INDENT 0.0 .TP .B \fB\-\-azure\-credential / \-\-credential\fP Optionally specify the type of credential to use when authenticating with Azure. If omitted then Azure Blob Storage credentials will be obtained from the environment and the default Azure authentication flow will be used for authenticating with all other Azure services. If no credentials can be found in the environment then the default Azure authentication flow will also be used for Azure Blob Storage. .sp Allowed options are: .INDENT 7.0 .IP \(bu 2 \fBazure\-cli\fP\&. .IP \(bu 2 \fBmanaged\-identity\fP\&. .IP \(bu 2 \fBdefault\fP\&. .UNINDENT .TP .B \fB\-\-azure\-resource\-group\fP The name of the Azure resource group to which the compute instance and disks defined by the \fB\-\-snapshot\-instance\fP and \fB\-\-snapshot\-disk\fP arguments belong. .UNINDENT .sp \fBExtra options for GCP cloud provider\fP .INDENT 0.0 .TP .B \fB\-\-gcp\-zone\fP Zone of the disks from which snapshots should be taken. .TP .B \fB\-\-snapshot\-recovery\-zone\fP (deprecated) Zone containing the instance and disks for the snapshot recovery \- replaced by \fB\-\-gcp\-zone\fP\&. .UNINDENT .SH Author EnterpriseDB .SH Copyright © Copyright EnterpriseDB UK Limited 2011-2026 .\" End of generated man page.