Daily cron backup of Postgres to Amazon S3
1.6K
Dockerized cron job to backup a Postgres database to Amazon S3 every day at midnight.
It expects the following environment variables to be set:
PG_S3_BACKUP_BUCKET - S3 bucket to use backup storagePG_S3_BACKUP_ACCESS_KEY - AWS access key to authorize writing to the bucketPG_S3_BACKUP_SECRET_KEY - AWS secret key to authorize writing to the bucketPG_S3_BACKUP_HOST - Host of database to backupPG_S3_BACKUP_USER - User of database to backup (assumes this user can access without password)PG_S3_BACKUP_DB - Name of database to backupContent type
Image
Digest
sha256:2ae9e24bd…
Size
84 MB
Last updated
over 8 years ago
docker pull draffensperger/postgres-s3-backup