This page provides an overview about backup and restore capabilities in Google Distributed Cloud (GDC) air-gapped.
GDC lets you back up Kubernetes cluster workloads, Database Service clusters, Harbor registry instances, and virtual machine (VM) instances to S3-compatible object storage buckets and restore them from backups.
Backups of your workloads are useful for disaster recovery, CI/CD pipelines, replicating workloads, and upgrade scenarios. Protect your workloads to help you achieve business-critical recovery point objectives.
Supported data types
GDC backup and restore supports the following data types:
- Kubernetes cluster workload configuration information such as Deployments, StatefulSets, Secrets, ConfigMaps, and custom resources.
- Virtual machine (VM) instances and local snapshots of VM disks.
- Database Service clusters for PostgreSQL, Oracle, and AlloyDB Omni.
- Harbor registry instances.
Supported backup policies
GDC backup and restore supports the following policies to manage your data:
- Set backups to occur on a regular schedule.
- Deploy automated backups.
- Perform manual backup and restore requests.
- Use data retention policies to keep or remove data for specific periods of time.
- Control the backup data location. Store backup data in S3-compatible buckets on local, remote, or disconnected GDC instances.
Cluster backup
Kubernetes cluster backups safeguard your data by capturing the state of your applications, providing both crash consistency and application consistency. You can customize the backup process using pre and post execution hooks and multiple protected application strategies.
Backups are stored in S3-compatible repositories and managed through backup plans, which define their scope and schedule. Restore plans offer pre-configured recovery scenarios, allowing for quick and efficient cluster restoration.
For more information, see Cluster backup overview.
VM backup
GDC VM backups let you back up virtual machine workloads, including their configurations, disk images, and persistent volumes. Manage backups through backup plans, scheduling them regularly or creating them on-demand. Restore VMs to a previous state or recover individual disk snapshots. To begin protecting your VMs, create a backup repository and define your preferred backup plan.
For more information, see VM backup overview.
Harbor instance backup
Harbor backups provide comprehensive protection for your Harbor registry instances, safeguarding against data loss and ensuring business continuity. Schedule automatic backups or create them manually.
Define retention policies for long-term data management. In the event of a disaster, restore your Harbor instance, including all artifacts and metadata, from a previously created backup.
For more information, see Harbor backup overview.
Database Service backup
Database Service backups help protect your PostgreSQL, Oracle, and
AlloyDB Omni database clusters by storing daily automated backups
and on-demand manual backups in an object storage repository. You can set
retention periods and pause or resume scheduled backups by using a BackupPlan
custom resource in your project namespace.
For more information, see Enable backup for Database Service and Create a backup repository for Database Service.
User-managed and controller-managed backup plans
Backup operations for Database Service, VM management, and cluster backup use
both user-managed and controller-managed Kubernetes custom resources. Most
resources reside in your project namespace, except internal Database Service
backup plans, which reside in the Database Service shadow namespace. Before you
automate backups with Terraform or GitOps, check which custom resources you
manage and which ones platform controllers manage. Knowing the difference helps
you prevent AlreadyExists errors and avoid edits that controllers overwrite.
The following services and controllers create automated backup plans and supporting resources:
- Database Service:
- Default database cluster creation: Database Service creates a
user-managed
DBCLUSTER_NAME-backupBackupPlancustom resource in your project namespace withbackupRetainDays: 30andpaused: false. The GDC console and thegdcloud database clusters createcommand create this plan by default unless you pass the--no-backupflag. - Database cluster controller: On supported single-zone deployments,
this controller creates an internal
DBCLUSTER_NAME-intlbpBackupPlancustom resource in the Database Service shadow namespace outside your project namespace. This internal plan includes thedbadmin.goog/visibility: internallabel and setspaused: trueandbackupRetainDays: 7for upgrade and rollback. The controller skips this internal plan on multi-zone deployments. - Database
BackupPlancontroller: This controller provisions service-managedBackupRepositorycustom resources for internal backup plans and multi-zone deployments. Single-zone user-managed plans use thedbs-backup-repositoryBackupRepositorycustom resource that a platform administrator creates. The controller also creates scheduledBackupcustom resources when thepausedfield isfalse. For more information, see Enable backup for Database Service.
- Default database cluster creation: Database Service creates a
user-managed
- VM management (VM backup controller):
- VM backup plan controller: This controller creates two
controller-managed backing
BackupPlan.backup.gdc.goog/v1custom resources for eachVirtualMachineBackupPlancustom resource. TheVM_BACKUP_PLAN-cbplan (status.configBackupPlanfield) backs up VM configuration, and theVM_BACKUP_PLAN-vbplan (status.volumeBackupPlanfield, withincludeVolumeData: true) backs up VM volume data. This controller also createsProtectedApplicationcustom resources namedVM_BACKUP_PLAN-VM_OR_DISK_NAME, triggers scheduled backups from yourcronSchedulefield, and enforces yourmaxConcurrencylimit (defaults to2). In the v1 organization architecture, the controller creates one backingBackupPlancustom resource (status.backupPlanfield) with the same name as yourVirtualMachineBackupPlancustom resource. In this architecture, the controller doesn't propagate themaxConcurrencyfield. - VM backup template controller: This controller creates a
deactivated backing
BackupPlan.backup.gdc.goog/v1custom resource with the same name as yourVirtualMachineBackupPlanTemplatecustom resource to sync template settings to object storage. - VM and disk labeler controllers: These controllers apply the
bpvms/VM_NAMEandbpdisks/DISK_NAMEbackup scope labels with the valueIncludedInBackupScopeto VMs, VM disks, and persistent volume claims. The VM backup plan controller applies thebackupplans/VM_BACKUP_PLANlabel with the valueIncludedInBackupScopeto matching VMs. For more information, see User-managed and controller-managed VM backup resources.
- VM backup plan controller: This controller creates two
controller-managed backing
- Cluster backup (cluster backup controller): This controller creates a
controller-managed backing
BackupPlan.backup.gdc.goog/v1custom resource with theClusterBackupPlan: "v1"label for eachClusterBackupPlancustom resource. For more information, see Create a backup plan.
The preceding list includes the following placeholder values:
DBCLUSTER_NAME: the name of yourDBClustercustom resourceVM_BACKUP_PLAN: the name of yourVirtualMachineBackupPlancustom resourceVM_OR_DISK_NAME: the name of the protected VM or VM diskVM_NAME: the name of the VMDISK_NAME: the name of the VM disk
What's next
- Cluster backup overview
- VM backup overview
- Enable backup for Database Service
- Harbor backup overview