Docker image that dumps a Postgres database, and uploads it to an Amazon S3 bucket.
DB_HOST: Postgres hostnameDB_PORT: Postgres portDB_PASS: Postgres passwordDB_USER: Postgres usernameDB_NAME: Name of databaseAWS_S3_PATH: Amazon S3 path in the format: s3://bucket-name/some/pathAWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_DEFAULT_REGION
KEEP_BACKUP_DAYS: The number of days to keep backups for when pruning old backups
This image can also be run as a one off task to restore one of the backups.
To do this, we run the container with the command: /backup/restore.sh [S3-filename].
The following environment variables are required:
DB_HOST: Postgres hostnameDB_PASS: Postgres passwordDB_USER: Postgres usernameDB_NAME: Name of databaseAWS_S3_PATH: Amazon S3 path in the format: s3://bucket-name/some/pathAWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_DEFAULT_REGION