huy-nguyen / terraform-google-miniflux

Terraform module for the Miniflux feed reader app on Google Cloud Platform
https://registry.terraform.io/modules/huy-nguyen/miniflux/google/latest
MIT License
5 stars 1 forks source link

Setting up database backup and export #2

Open yegle opened 3 years ago

yegle commented 3 years ago

Looks like there's no database backup nor export in the config.

Note the "backup" feature from CloudSQL is misnamed IMO. It's more like a "snapshot" of your database instance. If you accidentally deleted your database instance, all the backups are gone.

For exporting data to GCS you can set up a Cloud Scheduler job and send POST request: https://cloud.google.com/sql/docs/postgres/import-export/exporting#rest-v1beta4

huy-nguyen commented 3 years ago

Can you make a PR? Make sure that this new Terraform setup works given the instructions in README and is able to be torn down with terraform destroy.