For wbstack.com this was done in https://github.com/wbstack/deploy/tree/main/gce/snapshots. Initially we are planning to mostly copy this. However rather than using these scripts we should do it using terraform.
These initial snapshots were maintained for a few days. We should make a copy daily and retain them for 7 days. These should also be kept outside of the geographical region the cluster is running in.
A/C:
- snapshots of the data in the running mysql replica (secondary) pod
- defined in terraform
- copy daily and retain them for 7 days
- kept outside of the geographical region the cluster
- add the snapshot configuration for staging
- add the snapshot configuration for production
- document disk restore procedure (n.b. it is not necessary to fully execute these steps to practice them as part of this task)