Postgres Backup to GCS
Postgres backups to Google Cloud Storage (GCS)
Postgres Backup to GCS
drmarshall/postgres-gcs-backups
Just deployed
Specify environment variable config to get automated backups of your Postgres database using pg_dump, compressed, and uploaded to Google Cloud Storage.
Requires:
- Google Service Account key JSON
- A postgres DB URL connection string (with authentication)
- Minimal resources for a tiny node app
Template Content
Postgres Backup to GCS
drmarshall/postgres-gcs-backupsGCS_BUCKET
Your GCS bucket name (you must create it first)
GOOGLE_PROJECT_ID
The ID of your Google Cloud Project
SERVICE_ACCOUNT_JSON
JSON string of the service account .json key. See: https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating