Enable backup for database services

Once the DBS backup repository is set up, an Application Operator (AO) must enable backup service for a DBS DBCluster.

Enable backup services for DBS

To enable backup services for DBS, create a DBS BackupPlan resource in the same namespace. The backupRetainDays must be set to the number of days after which a backup can be automatically deleted.

Oracle BackupPlan example:

apiVersion:oracle.dbadmin.gdc.goog/v1
kind:BackupPlan
metadata:
name:backupplan1
spec:
dbclusterRef:dbcluster-sample
backupRetainDays:14
paused:false

Postgres BackupPlan example:

apiVersion:postgresql.dbadmin.gdc.goog/v1
kind:BackupPlan
metadata:
name:backupplan1
spec:
dbclusterRef:dbcluster-sample
backupRetainDays:14
paused:false

Once BackupPlan is created, DBS will start automatic backups once per day. The available recovery window is viewed in the BackupPlan's status.recoveryWindow field.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月16日 UTC.