Granular Recovery of Files and Folders

Cohesity DataPtotect as a Service supports Kubernetes clusters for granular recovery of files and folders within Persistent Volume Claims (PVCs). It allows for the selective recovery of files and folders from backed-up data volumes instead of restoring the entire volume in case of data corruption. This capability enables users to recover specific files or related files and folders efficiently.

You have the option to either download the files or initiate the recovery of files and folders. You can specify the download path if you choose to download the files. If you choose the restore option, you can select one or more files and folders from a single object. The recovered files and folders can be restored to their original location (such as the source, namespace, PVC, and file path) or an alternate location wherein the target source must be registered.

You can specify the recovery path and choose to preserve the original permissions and attributes of the recovered files and folders at the time of the backup. Additionally, you can overwrite files and folders or download them from selected snapshots created by an Object

  • For archived items, only downloading is supported.
  • If restoring to a different location, you must turn on the PVC inclusion/exclusion feature and enable the corresponding magneto flag. This is necessary to list the PVCs available for selection during recovery.

Considerations

  • Granular recovery from archival is not supported. Only download is supported.

  • If recovering to an alternate location, ensure that the file system of the target supports the recovery of files.

  • Granular recovery is only supported for volumes of type PersistentVolumeClaims.

  • Recovery of files and folders to an alternate location is restricted to already registered Kubernetes sources.

  • Granular recovery does not support file and folder recovery involving multiple namespaces.

  • Granular file recovery from the archive to the original sources is not supported. Only file/folder downloads are allowed.

  • Attempt to resubmit a failed Kubernetes restore job may fail with the following error message:

    "Error while calling FileStat for /cohesity-data/cohesity-data/pv-5tb: [kNotFound]: Bridge error: Directory not present."

    The issue occurs due to a known UI bug, which adds an extra "cohesity-data" to the file path with each resubmission. A fix for this issue is expected in a future release.

To recover protected files and folders:

  1. In DataProtect as a Service, go to Sources to set up your recovery task.

  2. Click on the Source name.

  3. Above the tree, select Show All > Protected.

  4. Use the filters, search box, and views to locate and select the files and folders.

    You can also use Global Search to locate, filter, and select the objects you need. Click the Global Search box at the top or type slash (/) anywhere to start your search.

  5. Locate the source object containing the files you want to recover and click the Recover Files icon on that row.

    By default, the latest snapshot is selected for recovery. To recover from a different snapshot, click the snapshots drop-down in the top-right corner and select the snapshot you need.

    • Changing the snapshot after selecting the items (files or folder) removes the selected items from the cart.

    • To recover files, navigate to cohesity-data and select the files you want to restore.

  6. Browse to the file or folder that you want to recover by clicking folders and their subfolders.

  7. You have the option to select either Download or Recover files. To download, select the recovery point by choosing Select Recovery Point and then click on the Download option to download files and folders. To recover, proceed to the next step.

  8. Under Recover To, select Original Server or New Server. If you choose:

    Original Location: By default, the files are received to the original path.

    New Location: Select a Registered Source. You also have the option to register a new source. Select the path where you want to recover the files.

  9. Optional. Edit the default settings of the following Recovery Options: You can select any one of the Recovery options:

    1. Overwrite Existing File/Folder: Allows to overwrite the existing files and folders with new ones during recovery.

    2. Preserve File/Folder Attributes: Allows to preserve the attributes of the files from the snapshot, regardless of their existence.

    3. Continue on Error: Allows to continue recovery even if one of the objects encounters an error.

    4. Cluster Interface: Is auto-selected,

    5. Task Name: Change the default name of the recovery task.

  10. Click Recover.