barman-cloud-wal-archive - Archive PostgreSQL WAL files in the Cloud using archive_command
barman-cloud-wal-archive [OPTIONS] DESTINATION_URL SERVER_NAME WAL_PATH
This script can be used in the archive_command
of a PostgreSQL server to ship WAL files to the Cloud. Currently only AWS S3 is supported.
This script and Barman are administration tools for disaster recovery of PostgreSQL servers written in Python and maintained by 2ndQuadrant.
s3://BUCKET_NAME/path/to/folder
(where BUCKET_NAME
is the bucket you have created in AWS).
AES256
and aws:kms
.
For Boto:
For AWS:
This script can be used in conjunction with pre_archive_retry_script
to relay WAL files to S3, as follows:
pre_archive_retry_script = 'barman-cloud-wal-archive [*OPTIONS*] *DESTINATION_URL* ${BARMAN_SERVER} ${BARMAN_FILE}'
Barman has been extensively tested, and is currently being used in several production environments. However, we cannot exclude the presence of bugs.
Any bug can be reported via the Github issue tracker.
Barman is the property of 2ndQuadrant Limited and its code is distributed under GNU General Public License v3.
Copyright (C) 2011-2020 2ndQuadrant Ltd - http://www.2ndQuadrant.com/.