Back up and restore overview

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-backup BackupPlan custom resource in your project namespace with backupRetainDays: 30 and paused: false. The GDC console and the gdcloud database clusters create command create this plan by default unless you pass the --no-backup flag.
    • Database cluster controller: On supported single-zone deployments, this controller creates an internal DBCLUSTER_NAME-intlbp BackupPlan custom resource in the Database Service shadow namespace outside your project namespace. This internal plan includes the dbadmin.goog/visibility: internal label and sets paused: true and backupRetainDays: 7 for upgrade and rollback. The controller skips this internal plan on multi-zone deployments.
    • Database BackupPlan controller: This controller provisions service-managed BackupRepository custom resources for internal backup plans and multi-zone deployments. Single-zone user-managed plans use the dbs-backup-repository BackupRepository custom resource that a platform administrator creates. The controller also creates scheduled Backup custom resources when the paused field is false. For more information, see Enable backup for Database Service.
  • VM management (VM backup controller):
    • VM backup plan controller: This controller creates two controller-managed backing BackupPlan.backup.gdc.goog/v1 custom resources for each VirtualMachineBackupPlan custom resource. The VM_BACKUP_PLAN-cb plan (status.configBackupPlan field) backs up VM configuration, and the VM_BACKUP_PLAN-vb plan (status.volumeBackupPlan field, with includeVolumeData: true) backs up VM volume data. This controller also creates ProtectedApplication custom resources named VM_BACKUP_PLAN-VM_OR_DISK_NAME, triggers scheduled backups from your cronSchedule field, and enforces your maxConcurrency limit (defaults to 2). In the v1 organization architecture, the controller creates one backing BackupPlan custom resource (status.backupPlan field) with the same name as your VirtualMachineBackupPlan custom resource. In this architecture, the controller doesn't propagate the maxConcurrency field.
    • VM backup template controller: This controller creates a deactivated backing BackupPlan.backup.gdc.goog/v1 custom resource with the same name as your VirtualMachineBackupPlanTemplate custom resource to sync template settings to object storage.
    • VM and disk labeler controllers: These controllers apply the bpvms/VM_NAME and bpdisks/DISK_NAME backup scope labels with the value IncludedInBackupScope to VMs, VM disks, and persistent volume claims. The VM backup plan controller applies the backupplans/VM_BACKUP_PLAN label with the value IncludedInBackupScope to matching VMs. For more information, see User-managed and controller-managed VM backup resources.
  • Cluster backup (cluster backup controller): This controller creates a controller-managed backing BackupPlan.backup.gdc.goog/v1 custom resource with the ClusterBackupPlan: "v1" label for each ClusterBackupPlan custom resource. For more information, see Create a backup plan.

The preceding list includes the following placeholder values:

  • DBCLUSTER_NAME: the name of your DBCluster custom resource
  • VM_BACKUP_PLAN: the name of your VirtualMachineBackupPlan custom resource
  • VM_OR_DISK_NAME: the name of the protected VM or VM disk
  • VM_NAME: the name of the VM
  • DISK_NAME: the name of the VM disk

What's next