.\" Automatically generated by Pandoc 2.8.0.1 .\" .TH "BARMAN-CLOUD-WAL-ARCHIVE" "1" "December 5, 2019" "Barman User manuals" "Version 2.10" .hy .SH NAME .PP barman-cloud-wal-archive - Archive PostgreSQL WAL files in the Cloud using \f[C]archive_command\f[R] .SH SYNOPSIS .PP barman-cloud-wal-archive [\f[I]OPTIONS\f[R]] \f[I]DESTINATION_URL\f[R] \f[I]SERVER_NAME\f[R] \f[I]WAL_PATH\f[R] .SH DESCRIPTION .PP This script can be used in the \f[C]archive_command\f[R] of a PostgreSQL server to ship WAL files to the Cloud. 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. .TP WAL_PATH the value of the `%p' keyword (according to `archive_command'). .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 -z, \[en]gzip gzip-compress the WAL while uploading to the cloud .TP -j, \[en]bzip2 bzip2-compress the WAL while uploading to the cloud .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]. .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 SEE ALSO .PP This script can be used in conjunction with \f[C]pre_archive_retry_script\f[R] to relay WAL files to S3, as follows: .IP .nf \f[C] pre_archive_retry_script = \[aq]barman-cloud-wal-archive [*OPTIONS*] *DESTINATION_URL* ${BARMAN_SERVER} ${BARMAN_FILE}\[aq] \f[R] .fi .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 .