This document describes how to create a manual restore for a backup in Google Distributed Cloud (GDC) air-gapped.
Manual restores enable recovery to a specific point in time by selecting a specific backup version.
Before you begin
Ensure you have an existing backup. For more information, see Plan a set of backups.
Request IAM roles
To create a restore for a backup, ask your Organization IAM Admin or Project IAM Admin to grant you one of the following roles:
User Cluster Backup Admin (
user-cluster-backup-admin): creates, gets, lists, watches, updates, patches, and deletes backup resources such as backup and restore plans in user clusters. Contact your Organization IAM Admin to request this role.Backup Creator (
backup-creator): creates, gets, lists, watches, updates, patches, and deletes manual backup requests and manual restore requests. Contact your Project IAM Admin to request this role.
Create a restore
Create a restore using the GDC console or the API.
Console
- Sign in to the GDC console.
- In the navigation menu, click Backup for Clusters.
- Select a project.
- Click the Backups tab.
- In the list of backups, find the backup to restore and click Restore.
- Choose a restore plan from the list of plans that apply to this backup.
- Enter a name and an optional description for the restore.
- Click Restore.
API
Create a ManualClusterRestoreRequest custom resource to perform restores from
existing ClusterRestorePlan resources. Specify the following resources:
- The
ClusterBackupresource that you want to restore. - The name of the
ClusterRestorethat you want to create - The
ClusterRestorePlanthat matches theClusterBackupPlanof theClusterBackup.
Here's an example of a ManualClusterRestoreRequest resource:
apiVersion: backup.gdc.goog/v1
kind: ManualClusterRestoreRequest
metadata:
name: RESTORE_NAME
namespace: PROJECT_NAMESPACE
spec:
clusterRestoreName: RESTORE_NAME
clusterRestorePlanName: RESTORE_PLAN
clusterBackupName: BACKUP_NAME
Replace the following:
RESTORE_NAME: the name of the cluster restore that you want to create.PROJECT_NAMESPACE: the name of your GDC project.RESTORE_PLAN: the name of the cluster restore plan this cluster restore is derived from.BACKUP_NAME: the cluster backup to restore. ThisClusterBackupresource must be associated with theClusterBackupPlanresource to which the cluster restore plan refers to. For more information, see Plan a set of restores.After initiating a
ManualClusterRestoreRequest, aClusterRestorecustom resource is created.