Sign inSign up

ephemerecreative/pg-backup-s3

By ephemerecreative

Updated over 6 years ago

Image
0

1.1K

ephemerecreative/pg-backup-s3 repository overview

pg-backup-s3

Docker Cloud Automated Build Docker Cloud Build Status

NOTE: We are trying this out in one of our projects, but haven't tested it in a real production environment.

Simple utility to backup a Postgres database to S3-compatible storage.

Sample k8s configuration.

Environment Variables

Environment Variable NameEnvironment Variable Description
S3_ENDPOINTThe endpoint of the S3-compatible service you would like to use.
S3_REGIONThe region of the S3-compatible service you would like to use.
S3_ACCESS_KEY_IDYour S3 access key ID.
S3_SECRET_ACCESS_KEYYour S3 secret access key.
S3_BUCKETYour S3 bucket name.
BUCKET_PATHThe path within the bucket that you would like to save the backups in.
PGUSERThe postgres database user.
PGPASSWORDThe postgres database password.
PGHOSTThe postgres database host.
PGPORTThe postgres database port.
PGDATABASEThe postgres database name.
PG_DUMP_FLAGSpg_dump is used to generate the backups. By default we export using -Fc, but you can replace these flags with your preferred configuration.
OTHER_S3CMD_FLAGSWe use s3cmd to upload the backup file. If you would like to use any other flags to modify the command, add them with this variable.

Tag summary

Content type

Image

Digest

Size

413.3 MB

Last updated

over 6 years ago

docker pull ephemerecreative/pg-backup-s3