Dockerfile + scripts to backup and restore from a google cloud bucket
The service account json file should be accessible in /service-account/account.json
DATABASE_HOST
DATABASE_USERNAME
DATABASE_PASSWORD
DATABASE_HOST
BUCKET_NAME
FILENAME
# Required for restore only
$ docker build -t pg-db-backup .
$ docker run --rm pg-db-backup --env-file=.env backup
$ docker run --rm pg-db-backup --env-file=.env --env=FILENAME=filename.dump restore
As of now this is only written to backup using google cloud, I would like to support AWS and Digital ocean in the future