Sign inSign up

siomiz/postgresql-s3

By siomiz

Updated over 8 years ago

dumps postgresql, encrypts with gpg, uploads to Amazon S3

Image
1

2.1K

siomiz/postgresql-s3 repository overview

(placeholder)

dumps all postgres database contents, encrypts it using gpg, and put the end product to Amazon S3 bucket.

docker run --rm --link postgres:postgres \
  -e GPG_PUBKEY_ID=00000000 \
  -e S3_KEY=s3://example/all.sql.gpg \
  -e AWS_ACCESS_KEY_ID=YOURAWSACCESSKEYID \
  -e AWS_SECRET_ACCESS_KEY=YourSecretAccessKey \
  siomiz/postgresql-s3

the container automatically exits, so -d is not used.

-e AWS_ACCESS_KEY_ID and -e AWS_SECRET_ACCESS_KEY are optional at docker run command; if you docker run -it without one or both of them you will get prompt(s).

Tag summary

Content type

Image

Digest

sha256:70d7393f4

Size

44.6 MB

Last updated

over 8 years ago

docker pull siomiz/postgresql-s3