Review Cloud SQL automatic backup settings

Verify Cloud SQL automatic backups and actual restore capability against recovery objectives.

Description

If a legacy Deployment Manager template omits the Cloud SQL backup setting, check the instance’s applied policy. High availability can replicate an accidental change.

Potential impact

Without a recent recovery point, a failed update or accidental deletion can cost data and prolong downtime.

Remediation

  • Use a supported tool to enable automatic backups and set the schedule and retention. For point-in-time recovery, also check the log settings for the database engine.
  • Limit backup and restore access, monitor successful runs, and regularly test how long a restore takes.

Examples

Standard support for Deployment Manager has ended. These excerpts use its legacy format. For a current deployment, supply the other required settings and a machine type supported for your engine, version and region.

Before

yaml
resources:
  - name: sql-instance
    type: sqladmin.v1beta4.instance
    properties:
      settings:
        tier: db-custom-1-3840

After

yaml
resources:
  - name: sql-instance
    type: sqladmin.v1beta4.instance
    properties:
      settings:
        tier: db-custom-1-3840
        backupConfiguration:
          enabled: true

settings.backupConfiguration.enabled: true explicitly requests automated backups. Confirm that a backup completed on the instance.

References