Postgres Database backup to remote S3 storage
- Creates archived Database dump file
- Makes an upload of files to remote S3
- Sends a heartbeat upon successful completion of work cycle
Pre-built binaries are available here.
Alternatively, you may run it locally by building an image under the root directory
docker build . -t pgbackup
PG_HOST- Postgres Database server hostnamePG_PORT- Postgres Database server portPG_DB- Database name to be backed upPG_USER- Database user name to make a backup withPG_PASS- Database user password to make a backup withAWS_S3_BUCKET- Aws S3 or compatible S3 storage bucketAWS_KEY_ID- Aws S3 or compatible S3 Access Key IdAWS_KEY- Aws S3 or compatible S3 Access KeyHEARTBEAT_URL- Heartbeat Url to call upon successful completion of the backupAWS_ENDPOINT_FILE- (optional) S3 compatible configuration endpoint file (example here)