Skip to content

mathportillo/docker-postgres-backups

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-postgres-backups

Uses pg_dumpall to dump a linked postgres container, encrypts with PGP and uploads to S3. Runs every 6 hours via cron.

Example docker-compose declaration

Paste this into your compose.yaml file.

postgres_backups:
  image: getsiphon/postgres-backups:latest
  environment:
    AWS_ACCESS_KEY_ID: my-aws-key
    AWS_SECRET_ACCESS_KEY: my-aws-secret
    S3_BUCKET_NAME: my-backups
    GPG_PUBKEY_ID: A1234567 # PGP public key fingerprint
    PREFIX: postgres-backup # S3 key prefix to save with
  links:
    - postgres:postgres

About

Dockerized periodic backups of PostgreSQL to S3, scheduled by cron.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%