Sign inSign up

rplan/postgres-backup-gcs

By rplan

•Updated almost 3 years ago

Backup a postgres databast to googlecloud storage

Image
0

50K+

rplan/postgres-backup-gcs repository overview

⁠postgres-backup-gcs

Responsible: #DevOps

Create a backup of a specified postgres db to Google Cloud Storage

⁠Configuration

Set the following environment variables for the Docker container:

PGHOST Hostname of postgres db

PGPORT Port of postgres db

PGUSER Username of the postgres user

PGDATABASE Name of the database to be exported

PGPASSWORD Password of the postgres user

GCS_BUCKET_POSTGRES Google Cloud Storage bucket name

BACKUP_NAME Name of the backup file, will be appended by the current date

GOOGLE_APPLICATION_CREDENTIALS Path to mounted credentials file (google service account key json file)

Tag summary

Content type

Image

Digest

sha256:1ee28093e…

Size

457.3 MB

Last updated

almost 3 years ago

docker pull rplan/postgres-backup-gcs