# 13 File-Level Recovery

N2W supports file-level recovery. N2W performs a backup on the volume and instance level and specializes in the instant recovery of volumes and complete instances. However, in many cases, a user may want to access specific files and folders rather than recovering an entire volume.

N2W also provides the ability to locate the same item across a chain of consecutive snapshots during a single recovery session.

{% hint style="info" %}
AWS allows item-level recovery for individual files from S3 and EFS. After reviewing this section, see the sections below for target-specific considerations.
{% endhint %}

In previous versions of N2W, you could recover a volume, attach it to an instance, mount it, and then access the data from within that instance. After completing the restore, assuming the volume is no longer needed, the user needed to unmount, detach, and delete the volume. N2W now automates this entire process.

{% hint style="info" %}
To **Explore** the directory tree structure and select files or directories for recovery, the disk on the target backup must have an OS. If there is no OS on the disk, <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/LdE8dfxGGvYAuqCMH1SQ/explore%20icon.png" alt="" data-size="line"> **Explore** will not work and a File Level Recovery Session will not open.
{% endhint %}

In the **Backup Monitor**, select a backup and then select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/N715zPA8tn3VNU6yOr2K/Recover%20icon.png" alt="" data-size="line"> **Recover**. In the Recover screen, select an instance or an independent volume, and then select  <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/LdE8dfxGGvYAuqCMH1SQ/explore%20icon.png" alt="" data-size="line">**Explore Volumes.** For an instance, you can also select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/N715zPA8tn3VNU6yOr2K/Recover%20icon.png" alt="" data-size="line"> **Recover Volumes Only**, select the required volume, and then select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/LdE8dfxGGvYAuqCMH1SQ/explore%20icon.png" alt="" data-size="line"> **Explore Volumes**.

<figure><img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/v6carbOIbBpxjQ3emepy/13%20FLR%20instances.png" alt=""><figcaption></figcaption></figure>

If there is more than 1 backup available to view, the File Level Recovery dialog opens showing the number of backups.

{% hint style="warning" %}

For Windows instances with dynamic disks partitioned using the master boot record (MBR) style, **Explore** only supports a single generation of snapshots. When more than 1 generation is selected for browsing, the dynamic disks will *not* be presented to the browser.
{% endhint %}

1. To view an instance across a chain of snapshots, select the number of backups to view.
2. To view the latest backup only, leave the value at the default of 1.
3. Select **Start Session**.

![](https://gblobscdn.gitbook.com/assets%2F-MCmcYDqe7zxX8UChJRp%2F-MPpM7sXrDfSFdL2rNqg%2F-MPpWhhkQrTWuZlBkF_7%2F3-2-1%20s13%20FLR%20\(2\).png?alt=media\&token=13ce2b64-a2c2-4604-b94b-08bf949efc74)

{% hint style="info" %}

* Only the number of available snapshots is presented, regardless of the number of generations.
* There is a limit of 72 volumes in a **File Level Recovery** **Session**.
  {% endhint %}

N2W will open the Initializing File Level Recovery message. ![](https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/1TqTDvvOdV6fYLHnpfFB/file%20level%20recovery%20msg.png)

Select **Open Session** for an **Explorer**-like view of the entire instance or a specific volume, folder, or file. Loading the session may take a few minutes. If the Initializing File Level Recovery message closes before you can select **Open Session**, in the left pane, select the **File Level Recovery Sessions** tab, select the active session, and then select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/rOMqavJV9T7oE9jbsM6s/explore%20icon%202.png" alt="" data-size="line"> **Explore**.

You will be able to browse, search for files, and download files and folders. Use the left and right arrows in the left corner to move between folders.

{% hint style="info" %}
Files in an **Explore** volume may be soft links (symbolic links) to other files. Trying to access this type of file may result in an error. However, the file is accessible via its real path. For example, `root/folder2/file2` is a soft link to `root/folder1/file1`, where `/root/folder1/file1` is the real path.
{% endhint %}

Select any file or folder and then select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/bSyl3xl4njft9raW5SoF/download%20icon.png" alt="" data-size="line"> **Download**. Folders are downloaded as uncompressed zip files.

![](https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/YqQc9QlIfSerKpeDqUTM/13%20FLR%20File%20Explorer-cropped-paint.png)

File-level recovery requires N2W to recover volumes in the background and attach them to a ‘worker’ launched for the operation. The worker will be launched in the same account and region as the snapshots being explored, using a pre-defined worker configuration. See section [22](https://docs.n2ws.com/user-guide/22-configuring-workers) to configure a ‘worker’ instance in the region that the snapshots exist.

{% hint style="info" %}
The worker will communicate with the N2W server over both HTTPS and SSH. Verify that your configuration allows such communication.
{% endhint %}

After you complete the recovery operation, select **Close** for all the resources to be cleaned up and to save costs. Even if you just close the tab, N2W will detect the redundant resources and clean them up, but N2W recommends that you use **Close**. Sessions can be closed from the **File Level Recovery Sessions** tab also.

## 13.1 Limitations <a href="#id-13-1-limitations" id="id-13-1-limitations"></a>

{% hint style="warning" %}
There are a few limitations:

* File-level recovery is supported only for file system types Ext2, Ext3, Ext4, NTFS, XFS, Btrfs.
* If several XFS volumes have the same UUID, they cannot be mounted.
* **Explore** works only on the supported file systems listed above. Attempting to **Explore** a volume of a non-supported file system will fail.
* **Explore** works only on simple volumes and Logical Volume Management (LVM). LVM is supported with file-level restore on Linux, as well as for Windows dynamic disks. Additionally, disks defined with Microsoft Storage Spaces are not supported.
* To **Explore** snapshots taken in a different region than where the N2W server is, it is required to configure a ‘**worker**’ instance in the region that the snapshots exist. See section [22](https://docs.n2ws.com/user-guide/22-configuring-workers).
* File-level recovery from an AMI only backup is not supported.
* N2W does not support Windows Data Deduplication.
  {% endhint %}

## 13.2 File Level Recovery from Snapshots in a Storage Repository <a href="#id-13-2-file-level-recovery-from-s3" id="id-13-2-file-level-recovery-from-s3"></a>

1. In the **Backup Monitor**, select a backup **Stored in Storage repository**, and then select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/N715zPA8tn3VNU6yOr2K/Recover%20icon.png" alt="" data-size="line"> **Recover.** The **Recover** screen opens.
2. In the **Recover From** drop-down list, select **Storage Repository**. If the original EBS snapshots of the selected backup were already deleted, **Storage Repository** will be the only option, and the drop-down list will be disabled.
3. In the Recover screen, select an instance or an independent volume, and then select ![](https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/LdE8dfxGGvYAuqCMH1SQ/explore%20icon.png) **Explore Volumes**. For an instance, you can also select ![](https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/N715zPA8tn3VNU6yOr2K/Recover%20icon.png)**Recover Volumes Only.** Select the required volume, and then select ![](https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/LdE8dfxGGvYAuqCMH1SQ/explore%20icon.png)**Explore Volumes.**
4. In the Initializing File Level Recovery message, select **Open Session**. ![](https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/1TqTDvvOdV6fYLHnpfFB/file%20level%20recovery%20msg.png) Loading the session may take a few seconds. If the Initializing File Level Recovery message closes before you can select **Open Session**, in the left pane, select the **File Level Recovery Sessions** tab, select the active session, and then select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/rOMqavJV9T7oE9jbsM6s/explore%20icon%202.png" alt="" data-size="line"> **Explore**.
5. In the File Level Recovery Session window, navigate to the desired folder. See section [13](https://docs.n2ws.com/user-guide/13-file-level-recovery).
6. Select the folders or snapshots to recover and select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/bSyl3xl4njft9raW5SoF/download%20icon.png" alt="" data-size="line"> **Download**.
7. To close an active session, in the **File Level Recovery Sessions** tab, select the active session and then select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/rJTVavp81dnHsAcR9mHv/close%20icon.png" alt="" data-size="line"> **Close**.

![](https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/cuiZo5ogwAsYBQHnyF4j/13-2%20FLR%20fr%20S3-cropped.png)

![](https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/NJKEY8cNyksYV67fKNWV/13-2%20FLR%20Sessions-cropped.png)

## 13.3 File-Level Recovery from EFS <a href="#id-13-3-file-level-recovery-from-efs" id="id-13-3-file-level-recovery-from-efs"></a>

You can restore up to 5 items in your EFS to the directory in the source file system.

**To restore EFS at the item level:**

1. In the **Backup Monitor**, select a snapshot, and then select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/N715zPA8tn3VNU6yOr2K/Recover%20icon.png" alt="" data-size="line"> **Recover**.
2. &#x20;In the **EFS Restore Type** column, select **File/Directory Restore**.
3. The default **Preserve Tags** action during recovery is **Preserve Original** for the volumes associated with the virtual machine. To manage tags, see section ‎‎[10.3](https://docs.n2ws.com/user-guide/10-performing-recovery#id-10-3-instance-recovery).
4. At the left, select the right arrow (>) to open the item recovery path input box.
5. In the **Paths for Files/Directories to Recover** box, enter a forward slash (/) and the name of the path. See further limitations on the pathname in the Warning box below.
6. Select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/mTpJiDA1RBi5iMwm7abe/New%20icon.png" alt="" data-size="line"> **New** to add up to 5 recovery paths.

![](https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/g47QdL6LSufxWYChWhv7/13-3%20FLR%20fr%20EFS-cropped.png)

{% hint style="warning" %}
When defining a recovery path:

* AWS Backup restores a specific file or directory. You must specify the path relative to the mount point. For example, if the file system is mounted to `/user/home/myname/efs` and the file path is `user/home/myname/efs/file1`, enter `/file1`.
* A forward slash (/) is required at the beginning of the path.
* Paths should be unique. If not, the 'This path already exists' error message will appear.
* Paths are case sensitive.
* Wildcards and regex strings are not supported.
  {% endhint %}

## 13.4 File-Level Recovery from S3 Bucket

You can restore up to 5 items in your S3 Bucket to the directory in the source file system.

**To restore S3 Bucket at the item level:**

1. &#x20;In the **Backup Monitor**, select a snapshot, and then select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/N715zPA8tn3VNU6yOr2K/Recover%20icon.png" alt="" data-size="line"> **Recover**.
2. &#x20;In the **Basic Options** tab, in **Restore Type**, select **Item level restore**.
3. Complete **Versions to Restore**, **Restore Destination**, and **Restore Access Control Lists**.
4. Select ![](https://1476770828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5oB64hgFIX2jdQ2O72cF%2Fuploads%2FkCcMAUmZ02QRxBKsMr09%2Fimage.png?alt=media\&token=48c03468-612a-4086-b5cb-20fdf7b81e78) **New** to add up to 5 recovery paths. In the **Paths for Files/Directories to Recover** box, enter a forward slash (/) and the name of the path. See further limitations on the pathname in the EFS <mark style="color:$warning;">Warning</mark> box above.
5. Select the **Tag Options** tab to manage any tags. The default **Preserve Tags** action during recovery is **Preserve Original**. To manage tags, see section ‎‎[10.3](https://docs.n2ws.com/user-guide/10-performing-recovery#id-10-3-instance-recovery).

<figure><img src="https://1476770828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5oB64hgFIX2jdQ2O72cF%2Fuploads%2FsfgDmNhYeUzsW35e8tlK%2Fcdn.webp?alt=media&#x26;token=32b887f1-53a0-488b-b284-bf8b24590fcf" alt="" width="251"><figcaption></figcaption></figure>
