This image creates a database dump, compress it, and send to an S3 bucket.
- Based on
postgres:10.3-alpine
- Contains
aws-cli/1.15.30 Python/2.7.14 Linux/4.9.87-linuxkit-aufs botocore/1.10.30
docker run -it --rm \
-e POSTGRES_HOST="hostname or IP" \
-e POSTGRES_USER="user name" \
-e POSTGRES_PASSWORD="secret password" \
-e POSTGRES_DB="database name" \
-e AWS_ACCESS_KEY_ID="access key" \
-e AWS_SECRET_ACCESS_KEY="access secret" \
-e AWS_REGION="your region" \
-e AWS_S3_BUCKET="s3://bucket name" \ # without the final /
mailtop/postgres-dump-maker