.\" Automatically generated by Pandoc 2.10.1 .\" .TH "BARMAN-CLOUD-RESTORE" "1" "November 5, 2020" "Barman User manuals" "Version 2.12" .hy .SH NAME .PP barman-cloud-restore - Restore a PostgreSQL backup from the Cloud .SH SYNOPSIS .PP barman-cloud-restore [\f[I]OPTIONS\f[R]] \f[I]SOURCE_URL\f[R] \f[I]SERVER_NAME\f[R] \f[I]BACKUP_ID\f[R] \f[I]RECOVERY_DIR\f[R] .SH DESCRIPTION .PP This script can be used to download a backup previouslymade with \f[C]barman-cloud-backup\f[R] command. Currently only AWS S3 is supported. Tablespaces are restored in the original location. .PP This script and Barman are administration tools for disaster recovery of PostgreSQL servers written in Python and maintained by 2ndQuadrant. .SH POSITIONAL ARGUMENTS .TP SOURCE_URL URL of the cloud source, such as a bucket in AWS S3. For example: \f[C]s3://BUCKET_NAME/path/to/folder\f[R] (where \f[C]BUCKET_NAME\f[R] is the bucket you have created in AWS). .TP SERVER_NAME the name of the server as configured in Barman. .TP BACKUP_ID the ID of the backup to restore .TP RECOVERY_DIR the path to a local directory for recovery (used as PGDATA). .SH OPTIONS .TP -h, \[en]help show a help message and exit .TP -V, \[en]version show program\[cq]s version number and exit .TP -t, \[en]test test connectivity to the cloud destination and exit .TP -P, \[en]profile profile name (e.g.\ INI section in AWS credentials file) .TP -e ENCRYPT, \[en]encrypt ENCRYPT enable server-side encryption with the given method for the transfer. Allowed methods: \f[C]AES256\f[R] and \f[C]aws:kms\f[R]. .TP \[en]endpoint-url override the default S3 URL construction mechanism by specifying an endpoint. .SH REFERENCES .PP For Boto: .IP \[bu] 2 https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html .PP For AWS: .IP \[bu] 2 http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html .IP \[bu] 2 http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html. .SH DEPENDENCIES .IP \[bu] 2 boto3 .SH EXIT STATUS .TP 0 Success .TP Not zero Failure .SH BUGS .PP Barman has been extensively tested, and is currently being used in several production environments. However, we cannot exclude the presence of bugs. .PP Any bug can be reported via the Github issue tracker. .SH RESOURCES .IP \[bu] 2 Homepage: .IP \[bu] 2 Documentation: .IP \[bu] 2 Professional support: .SH COPYING .PP Barman is the property of 2ndQuadrant Limited and its code is distributed under GNU General Public License v3. .PP Copyright (C) 2011-2020 2ndQuadrant Ltd - . .SH AUTHORS 2ndQuadrant .