Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 872 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 872 Bytes

postgres-s3-backup

Docker image with PostgreSQL and AWS CLI installed for backing up a pg database to S3.

Usage

Start image

docker run --name some-image-name -e PGHOST="" -e PGPORT="" -e PGDATABASE="" -e PGUSER="" -e PGPASSWORD="" -e AWS_ACCESS_KEY_ID="" -e AWS_SECRET_ACCESS_KEY="" -e S3_BUCKET="" postgres-s3-backup

Both aws and psql must be configured in order to run those functions on this image. You can do that by either setting the environment variables in the docker run command, or by setting them through the awscli or psql commands. More information can be found at PSQL's Documentation and AWS' documentation.

Supported Docker Versions

This image is officially supported on Docker version 1.12.5.