Skip to content

draffensperger/postgres-s3-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postgres-s3-backup

Dockerized cron job to backup a Postgres database to Amazon S3 every day at midnight.

It expects the following environment variables to be set:

  • PG_S3_BACKUP_BUCKET - S3 bucket to use backup storage
  • PG_S3_BACKUP_ACCESS_KEY - AWS access key to authorize writing to the bucket
  • PG_S3_BACKUP_SECRET_KEY - AWS secret key to authorize writing to the bucket
  • PG_S3_BACKUP_HOST - Host of database to backup
  • PG_S3_BACKUP_USER - User of database to backup (assumes this user can access without password)
  • PG_S3_BACKUP_DB - Name of database to backup

About

Dockerized cron backup of a Postgres db to Amazon S3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages