1

I have a manual backup I'd like to keep from a recently deleted CloudSQL instance

Is there a way to keep that backup indefinitely?

justsomeguy
  • 513
  • 4
  • 11

1 Answers1

3

On-demand backups only will exist while the instance exists. This in mentioned in the docs:

On-demand backups are not automatically deleted the way automated backups are. They persist until you delete them or until their instance is deleted.

The best approach is to make an export to a GCS bucket. This is as well mentioned in the same doc:

Backups are managed by Cloud SQL according to retention policies, and are stored separately from the Cloud SQL instance. Cloud SQL backups differ from an export uploaded to Cloud Storage, where you manage the lifecycle.

Puteri
  • 3,348
  • 4
  • 12
  • 27
  • In addition to @Ferregina's answer there are already internal discussions with regards on keeping the backup after the SQL instance is deleted. However there is no ETA for the said feature. You can check this [issue tracker link](https://issuetracker.google.com/issues/203852777) for updates – Siegfred V. Oct 12 '22 at 01:24