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.
From the navigation pane, go to Protect > Kubernetes.
The Applications tab appears.
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 , and then click Restore.
The Select restore type page appears.
Click Application files.
The Restore page appears.
Select the content to restore.
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.
In the upper-right corner of the page, click Settings.
The Settings dialog box appears.
From the MediaAgent list, select the access node that contains the backup copy.
From the Source list, select the backup copy.
The Restore options dialog box appears.
On the Volume tab, click Out of place.
For Destination cluster, select the cluster to restore the content to.
You can select any Kubernetes cluster that is added to Commvault.
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.
In the Volume box, enter the volume to restore the content to.
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.
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.
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.