.\" Automatically generated by Pandoc 2.8.0.1 .\" .TH "BARMAN-CLOUD-BACKUP" "1" "December 5, 2019" "Barman User manuals" "Version 2.10" .hy .SH NAME .PP barman-cloud-backup - Backup a PostgreSQL instance and stores it in the Cloud .SH SYNOPSIS .PP barman-cloud-backup [\f[I]OPTIONS\f[R]] \f[I]DESTINATION_URL\f[R] \f[I]SERVER_NAME\f[R] .SH DESCRIPTION .PP This script can be used to perform a backup of a local PostgreSQL instance and ship the resulting tarball(s) to the Cloud. It requires read access to PGDATA and tablespaces (normally run as \f[C]postgres\f[R] user). Currently only AWS S3 is supported. .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 DESTINATION_URL URL of the cloud destination, 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. .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 -v, \[en]verbose increase output verbosity (e.g., -vv is more than -v) .TP -q, \[en]quiet decrease output verbosity (e.g., -qq is less than -q) .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 -z, \[en]gzip gzip-compress the tar files when uploading to the cloud .TP -j, \[en]bzip2 bzip2-compress the tar files when uploading to the cloud .TP -e, \[en]encrypt enable server-side encryption for the transfer. Allowed values: `AES256'|`aws:kms'. .TP -h, \[en]host host or Unix socket for PostgreSQL connection (default: libpq settings) .TP -p, \[en]port port for PostgreSQL connection (default: libpq settings) .TP -U, \[en]user user name for PostgreSQL connection (default: libpq settings) .TP \[en]immediate-checkpoint forces the initial checkpoint to be done as quickly as possible .TP -J JOBS, \[en]jobs JOBS number of subprocesses to upload data to S3 (default: 2) .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. .PP For libpq settings information: .IP \[bu] 2 https://www.postgresql.org/docs/current/libpq-envars.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-2019 2ndQuadrant Ltd - . .SH AUTHORS 2ndQuadrant .