Skip to content

Latest commit

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

backup-postgres

A simple Docker container to create and encrypted backup of PostgreSQL to S3.

Backup PostgreSQL


docker run --rm \
-v ~/.aws:/aws \
--link postgres:postgres \
-e BUCKET=s3://bucket.example.com \
-e ENC_KEY=encryption_string \
-e PGHOST=postgres \
-e PGUSER=user \
-e PGPASSWORD=passwd \
hyperboloide/backup-postgres \
backup

Restore PostgreSQL

docker run \
--rm -ti \
-v ~/.aws:/aws \
--link postgres-restore:postgres \
-e BUCKET=s3://bucket.example.com \
-e ENC_KEY=encryption_string \
-e PGHOST=postgres \
-e PGUSER=user \
-e PGPASSWORD=passwd \
hyperboloide/backup-postgres \
restore

About

A simple Docker container to backup PostgreSQL to S3.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages