Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 906 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 906 Bytes

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