Skip to content

LucienMLD/pg-backup-buildpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 

Repository files navigation

pg-backup-buildpack (Work In Progress)

This buildpack is use to create an external backup of a postgresql database on S3 compatible object storage

Config

  • DATABASE_URL
  • PG_BACKUP_PGP_PUBLIC_KEY
  • PG_BACKUP_S3_BUCKET_NAME
  • PG_BACKUP_S3_KEY_ID
  • PG_BACKUP_S3_KEY_SECRET
  • PG_BACKUP_S3_HOST_BASE (ie: s3.amazonaws.com)
  • PG_BACKUP_S3_BUCKET_LOCATION (ie: US)
  • PG_BACKUP_CRON_TIME (optional)(default: */10 * * * *)
  • PG_BACKUP_I_KNOW_WHAT_I_AM_DOING_BY_DISABLE_PGP_ENCRYPTION (optional)

How to install on a repository

  • add this builpack in builpack in .buildpacks : https://github.com/betagouv/pg-backup-buildpack.git
  • add your language builpack in .buildpacks
  • add this command backup-builpack: bin/backup-cron.sh in Procfile
  • add envs variable : PG_BACKUP_PGP_PUBLIC_KEY and S3 setup

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%