Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

PowerProtect Data Manager 19.12 Kubernetes User Guide

Self-service restore of Kubernetes namespaces from Kubernetes cluster (non-Tanzu)

PowerProtect Data Manager supports the self-service restore of namespaces from within the Kubernetes cluster. The following procedure describes how to perform a self-service restore.

Prerequisites

NOTE This feature is not supported for vSphere with Tanzu guest clusters.
NOTE A Kubernetes administrator can list the 100 most recent PowerProtect Data Manager backups that have taken place in the cluster within the last 30 days. Additionally, the last backup of every namespace backed up within the last 30 days using PowerProtect Data Manager is listed. Any backups not listed have to be restored from the PowerProtect Data Manager UI.

Steps

  1. Run the following command to list PowerProtect Data Manager backups performed within the last 30 days on the cluster:
    kubectl get backupjob -n powerprotect
    The command output lists all available backupJob custom resources of PowerProtect Data Manager, in the form <namespace name><yyyy-mm-dd-hh-mm-ss>. For example:
    admin@method:~> ~/k8s/kubectl get backupjob -n powerprotect
    NAME                                  AGE
    testapp1-2019-11-16-14-15-47          3d9h
    testapp1-2019-11-16-17-00-49          3d7h
  2. Select the backup that you want to restore from the list, and then create a RestoreJob yaml file in the following format:
    apiVersion: "powerprotect.dell.com/v1beta1"
    kind: RestoreJob
    metadata:
           name: <name for restore job>
           namespace: powerprotect
    spec:
    
           recoverType: RestoreToNew  #Default is RestoreToOriginal
           backupJobName: <Name of the backupjob> # For e.g. testapp1-2019-11-16-14-15-47
           namespaces:
                - name: <namespace that needs to be recovered>
                  alternateNamespace: <new namespace name> # Name for the recovered namespace. Needed only for RestoreToNew. Should not be specified for RestoreToOriginal 
                  persistentVolumeClaims:
                  - name: "*" #volumes to be recovered. By default all volumes backed up will be recovered
  3. Run the following command to apply the yaml:
    kubectl apply -f <restorejob yaml file name> -n powerprotect
  4. Run the following command to track the restore progress:
    kubectl get restorejob <restorejob name provided in yaml file> -n powerprotect -o yaml -w
  5. Upon successful completion of the restore, run the following command to delete the RestoreJob:
    kubectl delete restorejob <restorejob name provided in yaml file> -n powerprotect

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\