Restoring Kubernetes Application Files to a Different Volume

You can restore files and folders from a backup of a Kubernetes stateful application to a different PersistentVolumeClaim (PVC) attached to a running application or to a virtual or physical host.

Before You Begin

For Red Hat OpenShift Container Platform, if you are restoring to a PVC, verify that the applications are not running.

Procedure

  1. From the navigation pane, go to Protect > Kubernetes.

    The Applications tab appears.

  2. On the Application groups tab, in the row for the application group that contains the content that you want to restore, click the action button action_button, and then click Restore.

    The Select restore type page appears.

  3. Click Application files.

    The Restore page appears.

  4. Select the content to restore.

  5. To select a specific backup copy to restore from, do the following:

    By default, Commvault restores content from the first available, valid backup copy that it finds.

    1. In the upper-right corner of the page, click Settings.

      The Settings dialog box appears.

    2. From the MediaAgent list, select the access node that contains the backup copy.

    3. From the Source list, select the backup copy.

    4. Click Save.

  6. Click Restore.

    The Restore options dialog box appears.

  7. On the Volume tab, click Out of place.

  8. For Destination cluster, select the cluster to restore the content to.

    You can select any Kubernetes cluster that is added to Commvault.

  9. From the Access node list, select the access node to perform the restore.

    For optimal performance, select an access node that has low latency to the Kubernetes cluster and the backup copy.

  10. In the Volume box, enter the volume to restore the content to.

  11. In the Path box, enter the destination path relative to the PVC mount point.

    If the destination volume is mounted on the pod at /var/lib/www and you want to restore the files to /var/lib/www/html, then enter /html.

  12. To delete and overwrite existing data, move the Unconditionally overwrite if it already exists toggle key to the right, and then click Yes in the confirmation dialog box.

    If any data matching the restore data exists in the destination, Commvault deletes the existing data before starting the restore process.

  13. Click Submit.

What to Do Next

If you restored files or folders to a PersistentVolumeClaim (PVC) that is attached to a running pod, an application restart might be required to access the newly restored data in the application.

Loading...