View and delete a restore

This page describes how to view and delete an existing restore in Google Distributed Cloud (GDC) air-gapped.

Delete unused restores to free up storage space and reduce clutter.

Before you begin

To view and delete a restore, you must have the following:

  • An existing restore. For more information, see Plan a set of restores.
  • The necessary identity and access role:

    • For PA users:
      • User Cluster Backup Admin: manages backup resources such as backup and restore plans in user clusters. Ask your Organization IAM Admin to grant you the User Cluster Backup Admin (user-cluster-backup-admin) role.
    • For AO users:
      • Backup Creator: creates manual backups and restores. Ask your Project IAM Admin to grant you the Backup Creator (backup-creator) role.
    • For more information, see Role definitions.

View a restore

View a list of restores using the GDC console or kubectl.

Console

  1. Sign in to the GDC console.
  2. In the navigation menu, click Backup for Clusters.
  3. Click Select project to select an organization or project depending on your role:
  4. Backup Admin: Select an organization to see all of the restores in an organization or select a project to see all of the restores in a project.
  5. Backup Creator: Select a project to see all of the restores in a project.
  6. Click the Restores tab.
  7. Click a restore in the list to view its details.

kubectl

View the status of a restore in the default namespace:

kubectl get clusterRestores

Here's an example of the output:

NAME                   STATE
restore-sample         Succeeded

View restores in all namespaces:

kubectl get clusterRestores -A

View restores in a specific namespace:

kubectl get clusterRestores -n NAMESPACE

Replace NAMESPACE with the namespace containing the restores.

Delete a restore

Unlike backups, deleting a restore does not require issuing a request. Restores are deleted by deleting the resource directly from the Kubernetes API server. This action also cleans up any associated restore artifacts from object storage.

  • To delete a restore, use kubectl:

    kubectl delete clusterRestores RESTORE_NAME
    

    Replace RESTORE_NAME with the name of the restore.