> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/restore/restoring-data-from-the-agent-interface.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Restoring data from the agent interface

The Lina agent interface lets you restore any protected version of a file or folder backed up on the Lina server. This can be useful when an object has been corrupted, lost, or accidentally overwritten.

To perform a restore, you must make sure the agent on which you want to restore data is connected to the Lina server over a network.

In addition to restoring your data on your own local machine, your Lina Agent lets you perform the following advanced restore types:

* [<mark style="color:blue;">Cross restore</mark> ](#cross-restore): Restores data to a computer other than the one where the data was backed up.
* [<mark style="color:blue;">Remote restore mechanism:</mark>](#remote-restore-mechanism) Launches the restore from a computer other than the one on which the data was backed up.
* [<mark style="color:blue;">Restore from another server mechanism:</mark> ](#restore-from-another-server-mechanism)Restores data backed up by a server other than the one backing up your agent.
* [<mark style="color:blue;">Performing a combined advanced restore:</mark>](#performing-a-combined-advanced-restore) Performs a cross restore of data stored on a replicated server to a remote machine.

## Rights required to restore data

To perform a restore, you need:

* Read and write rights to the restore destination to ensure the machine's integrity.
* Restore rights for the source file's owner and all other file rights to guarantee data confidentiality.

In most cases, this permission is equivalent to being the owner of the files to restore. Without the required rights, you get an Access Denied error and Lina does not restore the file. File and folder access permissions are kept during the restore, whether it is a local or cross restore, performed as an end user or as an administrator.

### UAC and privileges

Depending on the operating system installed, the following permissions apply when restoring data:

* **Windows**\
  On machines where UAC (User Account Control) is enabled, you must use the **Run as administrator** option to launch the restore. It is possible to restore without having the required rights if the user account you are using has the **Restore privilege**. One way to have this privilege is to belong to the **Backup/Restore** group.
* **Linux and macOS**\
  The `su` or `sudo` command lets you restore with administrator privileges.

### ACLs

When restoring data related to access control lists (ACLs), you need the following permissions:

* System Access Control Lists (SACLs) on Windows require an Audit permission to restore data and SACLs.
* ACLs are not supported on Linux.

## Restore modes

The Lina Agent lets you restore in different modes. This depends on the permissions you have as a user logged in to the agent, or as an administrator managing multiple agents.

### Restore by the current user

This mode is the default mode. The restore is performed with the rights of the currently logged-in user. You can use current user restore to restore files owned by the current user.

Even if the current user belongs to the administrators group, they will not be able to perform a system restore since they do not have elevated privileges. For a system restore, you must use the **Restore as** option, even if it is with the current user's account.

### Impersonated restore

Impersonated restore lets you restore data with a security context different from that of the current user.

On Windows, when User Account Control (UAC) is enabled, the restore is performed without elevated privileges.

### System restore

System restore lets you restore all files, including files and folders that require administrator privileges.

System restore grants you the following rights:

* **Windows** Restore as NT Authority System with all privileges enabled.
* **Linux and macOS** Restore with <kbd>UID 0</kbd>, even if the root user is not enabled on the operating system.

## Confidentiality of user's data

To ensure data confidentiality, Lina can be configured to notify data owners by email that a web or cross restore is being performed on their data. When the restore operation is a cross-restore from an agent whose user email has been provided, the user email will appear in the notification. For web restore the user email will not appear in the notification.

To be notified by email, the following conditions must be met:

* Your administrator has enabled restore notifications on the Lina administration interface.
* Your email address has been provided on your Lina Agent or on the Lina administration interface. To add your email on your Lina Agent, see [Provide an Email Address to Identify the Agent](https://docs.atempo.com/lina/7.4/en/lina-user/Content/Documentation_Lina/Provide_E-Mail_to_Identify_Agent.htm), otherwise contact your administrator.

**To send notifications to users when their data is restored by other users, the Administrator must:**

1. In the Lina Administration Console, go to Settings > Preferences.
2. Enable the option in the Restore Notification section.

## Restoring data encrypted with EFS

Lina supports backing up files and folders encrypted with Windows EFS. To restore data backed up in encrypted format, you must use the agent in order to also restore the NTFS stream.

To perform a cross restore in the agent interface, you must first re-import the encryption key in order to successfully access the data. This overview (<mark style="color:blue;">Table 25</mark>) provides information on different scenarios for restoring encrypted data.

**Table 25:** EFS encrypted data restore scenarios

| **Scenario**                                                                  | **Result**                                                                                                                    |
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| **Restore using an agent on the same machine and with the same Windows user** | Possible to restore both the data and the encryption details stored in the NTFS alternate stream. The data remains encrypted. |
| **Restore using an agent on another machine and with the same Windows user**  | Only possible if the certificate used for encryption is re-imported to the restore destination.                               |
| **Web Restore**                                                               | Not possible, since no tool is able to restore data and alternate streams in the Web interface.                               |

## Restoring files or folders from your agent

Lina lets you apply different file restore methods. You can choose to let the Lina Restore Wizard guide you through the entire restore process, or browse and search backups yourself.

You can restore a protected file, as long as its retention period has not expired.

You can also restore any protected folder for which you have read-write and modify access permissions. If you do not have these permissions, an Access Denied error is triggered when you try to restore it. To restore a folder, you can use the Restore Wizard or Browse mode, or restore it from your file explorer.

You can restore:

* A single file.
* Multiple files.
* The content of a folder.
* The latest version of a file or folder.
* The version of your choice.

### Restore interface

Using a web browser, you can connect to your agent's restore interface from any machine and download the protected files of your choice, provided you have the appropriate permissions.

If you have your own SSL certificate and receive a warning message about the restore interface's security, you can ignore it. See [<mark style="color:blue;">SSL certificate</mark>](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/settings/security.md#ssl-certificate) for more details.

#### Accessing the restore interface

1. Right-click the Lina Agent icon in the taskbar (![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-a706e512334fc35ed41ffb7ab4375db810dcef12%2Fimage%20\(138\).png?alt=media)), then select **Restore**.
2. If needed, log in to the Lina Agent.

The restore interface is similar to the Web Restore interface.

#### Exploring the restore interface

The restore interface consists of 3 areas: a side menu, a header, and a central area displaying a tab's content.

The side menu on the left helps you navigate the restore interface. It contains the following sections:

* **Quick Restore**: this section lets you restore recently deleted files.
* **Restore Wizard**: this section lets you search for and restore specific files using a name, extension, location, or last modified date.
* **Browse**: this section lets you browse your protected file tree, view all versions of a file that have been backed up over time, and restore a specific version of a file.
* **Restore Activity**: this section lets you monitor restore activity and retrieve download links to restore files at a later date.

The header at the top of the screen includes:

* The name of the agent selected on the login page.
* User help: a tutorial on using the interface, quick help, and a link to the documentation.
* General information about the interface, such as the product version.
* A logout button.
* Your email address, if you provided one on the login page.

### About the Quick Restore view

The Quick Restore view lets you quickly restore one or more files deleted by mistake.

<figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-162324271c715fb7b54018e99eabdeb886120e9a%2Frapide.png?alt=media" alt=""><figcaption></figcaption></figure>

The following settings are displayed in the Quick Restore View Parameters (<mark style="color:blue;">Table 26</mark>):

**Table 26**: Quick Restore View Parameters

<table data-header-hidden><thead><tr><th width="201"></th><th></th></tr></thead><tbody><tr><td><strong>Setting</strong></td><td><strong>Description</strong></td></tr><tr><td><strong>Search bar</strong></td><td>Lets you set criteria to narrow your search.</td></tr><tr><td><strong>Duration selector</strong></td><td>Lets you display a detailed history of your agent's files over a specific duration. If you set a duration of one day, you will see the file history for the last 24 hours.</td></tr><tr><td><strong>Button bar</strong></td><td><p>Lets you restore the latest version of your files or refresh the versions list. This bar includes:</p><ul><li>Access to the Restore Options window, which lets you select a restore destination, the behavior to adopt if an item with a similar name exists, and use different user credentials.</li><li>A refresh button that lets you refresh the item list.</li></ul></td></tr></tbody></table>

### Restoring recently deleted files

This section contains a list of files deleted on your agent over a specific period. You can use it to recover the latest version of a deleted file, using a custom duration (for example, in the last 15 minutes).

#### Step 1: Select the files to restore

1. Right-click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-64e8f14e7e2d3f188ed4f8e55dd9b78282b6f45e%2Fimage%20\(128\).png?alt=media) icon of the Lina Agent in the taskbar, then click **Restore**.
2. If needed, log in to the Lina Agent.
3. To restore your files, go to **Quick Restore**.
4. In the filter area above the list of deleted files, set a duration to narrow your search (for example, in the last 15 minutes).
5. (Optional) Add keywords in the filter bar.
6. Select the files to restore from the list, then click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-dc58b5b907004bc4e110c1e4b1f309288908b517%2Fimage%20\(126\).png?alt=media) icon to restore the latest version of that file.\
   You can also restore a single file using the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-35b42503ff84ac4ab0a027e1161cb85b37d3bce0%2Fimage%20\(127\).png?alt=media) icon to the right of the file name.

#### Step 2: Set the restore options

1. **On the Restore Options page**, set **the restore destination** for the file you want to restore. You can restore the file **to its original folder** or to **a folder of your choice**.
2. **Set the behavior to adopt if a file with an identical name exists**:
   * **Overwrite**: The item is replaced by the restored item.
   * **Ignore**: The item is not restored.
   * **Rename**: The existing item is renamed with the `.bak` suffix.
3. **(Optional) Change identity to a user** who may have more privileges to restore data. If the chosen identity is linked to an administrators group, the restore is performed directly as an administrator (<kbd>NT Authority\system</kbd> on Windows, <kbd>root</kbd> on Linux and macOS):
   * Enable the **User change** option.
   * Enter a username and password:
     * **Impersonated restore:** Enter the username and password of the user you want to restore.
     * **System restore on Windows:** Enter the username and password belonging to the local administrators group.
     * **System restore on Linux and macOS:** Enter the username and password belonging to the **admin**, **adm**, **sudo**, **wheel**, or **root** groups.
   * You can check your credentials, if needed.
4. **Confirm that you want to restore the files** by clicking **Start restore**. Once the restore process is complete, you can view the details in the status overview. If the folder contains more than 10,000 files, the list of restored files is not displayed in real time for performance reasons.

### Restoring files or folders using Restore Wizard mode

Restore Wizard mode lets you search your protected files or directories, regardless of when they were backed up.

#### Step 1: Select the content to restore

1. Right-click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-5394a35db06e43d2e67aedce1453e2bb6dc0ef10%2Fimage%20\(132\).png?alt=media) icon of the Lina Agent in the taskbar, then click **Restore**.
2. If needed, log in to the Lina Agent.
3. Click the **Browse** tile.
4. Browse the files to restore in the list, then click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-ff1ca9cdd6b85f75c62e7ad684d53ab42759c99b%2Fimage%20\(131\).png?alt=media) icon to restore the latest version of that file. A list of versions may be available for some files by clicking ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-9ae03c54405de825d5e999e9f275b50863b670bb%2Fimage%20\(130\).png?alt=media) on the right side of each file.
5. Go to **Restore Wizard**.
6. Enter one or more search criteria:
   * **File name or extension**: enter a file name, extension, or both.
   * **Path**: enter a path for the item to search for, or browse your agent, then confirm your choice. You can enable **Include subfolders** to widen the search. You can provide the full path of your folder or enter a parent folder and choose to include subfolders in the search.
   * **Last modified date**: select the time interval during which the file was modified. You can use a duration, a date, or a time range as search criteria.
7. Once you have entered your search criteria, click **Next**. Items matching your search criteria are displayed, along with the size of each item. A warning icon ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-38ce06197c8f8cca67826c0b5ac9affa33f2c906%2Fimage%20\(129\).png?alt=media) may appear if your search returns too many results. In this case, consider using filters to narrow your search.
8. Select the files to restore, then click **Next**.

#### Step 2: Set the restore options

1. **Select a destination folder** for the items to restore. You can restore them to their original location or to another folder.
2. *(Optional)* Select the behavior to adopt if an item with the same name is found at the restore destination:
   * **Overwrite**: The item is replaced by the restored item.
   * **Ignore**: The item is not restored.
   * **Rename**: The existing item is renamed with the <kbd>.bak</kbd> suffix.
3. *(Only if you selected a folder in Browse mode)* Indicate whether you want to restore only files, or files and the folder containing those files.
4. *(Optional)* Change identity to a user who may have more privileges to restore data. If the chosen identity is linked to an administrators group, the restore is performed directly as an administrator (<kbd>NT Authority\system</kbd> on Windows, <kbd>root</kbd> on Linux and macOS):

   a. Enable the User change option.

   b. Enter a username and password:

   * **Impersonated restore**: Enter the username and password of the user you want to restore.
   * **System restore on Windows**: Enter the username and password belonging to the local administrators group.
   * **System restore on Linux and macOS**: Enter the username and password belonging to the admin, adm, sudo, wheel, or root groups.

   You can check your credentials, if needed.
5. Confirm that you want to restore the files by clicking **Start restore.** File size information in the Restore Wizard is displayed using decimal prefixes (1 MB equals 1000 KB), while file sizes in filesystems are usually displayed using binary prefixes (1 MB equals 1024 KB). As a result, you may notice a difference if you compare the two sizes. The file in the Restore Wizard appears larger. However, they are actually the same size.

### About the Browse view

The Browse view lets you restore several files or folders at once.

You can restore a previous version of an item if:

* The file still exists, but you want to recover it as it was on an earlier date.
* You know the file's location.
* You want to restore the item to a new location.
* An earlier version already exists in the destination folder, and you want to rename the restored version.

**In the Browse view, you can:**

* Select multiple items at a given point in time and restore them to a different location.
* Display the backup date and size of the item to restore.
* Display a list of available versions for each item at the far right of the item name.

<figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-662feedb6de1601dcacbe09bb7108eba25f3702b%2Fparcourir.png?alt=media" alt=""><figcaption></figcaption></figure>

This table describes the Browse view settings (<mark style="color:blue;">Table 27</mark>):

<details>

<summary><strong>Table 27</strong></summary>

| **Setting**                                | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connecting to a source server or agent** | <p>Lets you restore content backed up on a remote server or agent. This can be used to perform advanced restores such as cross restores, restores from alternate servers, or combined advanced restores.</p><p><br><br></p><p>You can access connection properties by clicking the ⚙️ icon next to the title section.</p>                                                                                                                                                                                                                                                   |
| **Search bar**                             | Lets you set criteria to narrow your search.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Date selector**                          | <p>Lets you select the date on which a version of the selected item was backed up.</p><p>The most recent protection date is set by default. If you changed the date and want to return to the most recent protection date, click the 🔄 icon.</p><p>The maximum time interval corresponds to the retention set for the agent. This ensures you have a consistent view of your agent in the past. > Example:</p><p>If retention is 7 days, you cannot go back more than 7 days in the past. This ensures you have a consistent view of your agent in the past.</p>           |
| **Time selector**                          | Lets you select the date on which a version of the selected item was backed up.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| **Compare button**                         | Compares the backup content of the workstation between two dates, for example the present and 8 days ago, to display files created, modified, or deleted within that time interval.                                                                                                                                                                                                                                                                                                                                                                                         |
| **Button bar**                             | <p>Lets you restore the selected versions all at once, view the list of versions you have selected in a restore basket, delete that list, or refresh the versions list. This bar includes:</p><p><br></p><p>-Access to the <strong>Restore Options</strong> window, which lets you select a restore destination, the behavior to adopt if an item with a similar name exists, and use different user credentials.</p><p>-Baskets that let you view the items you have selected or delete them all at once.</p><p>-A Refresh button that lets you refresh the item list.</p> |
| **Path**                                   | Displays the path of the item you are browsing on the agent. You can change the directory path by clicking the pencil icon on the right side of the screen.                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Versions**                               | Displays a list of versions backed up for the selected item when you click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-9d91ba64aad4fa70dd208e4174cddbcb546c9a5f%2Fimage%20\(134\).png?alt=media) icon.                                                                                                                                                                                                                                                                          |

</details>

If you restore multiple files from different directories to a different location, Lina restores the files and their entire file tree, except for any common parent folder.

**Examples**:

* Restoring `C:\directory1\directory2\file1.txt` to `C:\restored` results in the creation of `C:\restored\file1.txt`.
* Restoring the content of `C:\directory1\directory2\` to `C:\restored` results in the creation of all files in `C:\restored\`.
* Restoring `C:\directory1\directory2\file1.txt` and `C:\directory1\directory2\file2.txt` to `C:\restored` results in the creation of `C:\restored\file1.txt` and `C:\restored\file2.txt`.
* Restoring `C:\directory1\directory2\file1.txt` and `E:\directory3\file2.txt` to `C:\restored` results in the creation of `C:\restored\C\directory1\directory2\file1.txt` and `C:\restored\E\directory3\file2.txt`.
* Restoring `C:\directory1\directory2\file1.txt` and `C:\directory1\file2.txt` to `C:\restored` results in the creation of `C:\restored\directory2\file1.txt` and `C:\restored\file2.txt`.

### Restoring a file using Browse mode

In the **Browse** view, you can select multiple files and folders that were protected at a given point in time and restore them to a different location. If you restore multiple files from different folders, Lina restores the files and their entire file tree, except for any common parent folder.

#### Step 1: Select the content to restore

1. Right-click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-73e923facd3c6da46e9730afde2980014b9f80ec%2Fimage%20\(135\).png?alt=media) icon of the Lina Agent in the taskbar, then click **Restore**.
2. If needed, log in to the Lina Agent.
3. Click the **Browse** tile.
4. Browse the files to restore in the list, then click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-0c95595e47fdfce171ce6d287ff9c4bfd92a0822%2Fimage%20\(136\).png?alt=media) icon to restore the latest version of that file. A list of versions may be available for some files by clicking <img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-b61ae162bfee8e07d4c845df025fee3a65562caa%2Fimage%20(137).png?alt=media" alt="" data-size="line"> on the right side of each file.

#### Step 2: Set the restore options

1. On the **Restore Options** page, set the restore destination for the file you want to restore. You can restore the file to its original folder or to a folder of your choice.
2. Set the behavior to adopt if a file with an identical name exists:
   * **Overwrite**: The item is replaced by the restored item.
   * **Ignore**: The item is not restored.
   * **Rename**: The existing item is renamed with the `.bak` suffix.
3. (Optional) Change identity to a user who may have more privileges to restore data. If the chosen identity is linked to an administrators group, the restore is performed directly as an administrator (<kbd>NT Authority\system</kbd> on Windows, <kbd>root</kbd> on Linux and macOS):
   1. Enable the User change option.
   2. Enter a username and password:

      * **Impersonated restore**: Enter the username and password of the user you want to restore.
      * **System restore on Windows**: Enter the username and password belonging to the local administrators group.
      * **System restore on Linux and macOS**: Enter the username and password belonging to the admin, adm, sudo, wheel, or root groups.

      You can check your credentials, if needed.
4. Confirm that you want to restore the files by clicking **Start restore**. Once the restore process is complete, you can view the details in the status overview. If the folder contains more than 10,000 files, the list of restored files is not displayed in real time for performance reasons.

### Restoring a file or folder from a file explorer

You can restore the previous version of a file or folder if:

* The item still exists.
* The folder contains a subfolder tree that you do not want to restore.
* You want to restore the item to its original location.
* You only want to restore items that have been deleted.

#### Step 1: select the data to restore

1. **In a file explorer**, right-click the item to restore, then select **Lina Backup > Restore**.
2. **If needed,** log in to the Lina Agent.
3. **To restore your files**, go to **Browse**.<br>

   > **Important:** Make sure not to leave Browse mode before restoring your files, as you may lose your file selection.

**To restore a different backed-up version of a file,** click the <img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-835861ea8381039d0fa49c8e9693686a5a858e4f%2Fimage%20(56).png?alt=media" alt="" data-size="line"> icon to the right of the file name, select the version, then click **Restore**. If you want to see the file tree as it was on the selected version's backup date, click **Sync**. You can also see a preview of the file if an open-eye icon is displayed.

**To restore several files at once,** you can set a browsing date in the past to display the workstation's content as it was on that specific date. If you set a date in the past after selecting your file, your restore basket will be reset:

* Under the agent path you are browsing, select the folders or files you want to restore.\
  The content of the entire folder is not selected if you see a minus sign in the checkbox to the left of a folder name.
* (Optional) Check the list of items to restore by clicking the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-2bbcc4ff3195e4dffc4b60d4a86eafb4cfbb033b%2Fimage%20\(55\).png?alt=media) icon in the button bar.\
  You can see the list of items selected for restore. You can remove an item from the full list by clicking the cross next to the item. If you want to empty the restore basket, click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-b4c4bc36c5f3b45a72b154e6179a9d5094e3577a%2Fimage%20\(53\).png?alt=media) icon.
* Click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-c1e32baea13c86ab8a11ffac68facf47aeccf6ca%2Fimage%20\(52\).png?alt=media) icon to restore the selected files.

#### Step 2: set the restore options

1. On the **Restore Options** page, set the restore destination for the file you want to restore. You can restore the file to its original folder or to a folder of your choice.
2. Set the behavior to adopt if a file with an identical name exists:
   * **Overwrite**: The item is replaced by the restored item.
   * **Ignore**: The item is not restored.
   * **Rename**: The existing item is renamed with the `.bak` suffix.
3. (Optional) Change identity to a user who may have more privileges to restore data. If the chosen identity is linked to an administrators group, the restore is performed directly as an administrator (<kbd>*NT Authority\system*</kbd> on Windows, <kbd>*root*</kbd> on Linux and macOS):

   a. Enable the **User change** option.\
   b. Enter a username and password:

   * **Impersonated restore**: Enter the username and password of the user you want to restore.
   * **System restore on Windows**: Enter the username and password belonging to the local administrators group.
   * **System restore on Linux and macOS**: Enter the username and password belonging to the *admin*, *adm*, *sudo*, *wheel*, or *root* groups.

   You can check your credentials, if needed.
4. Confirm that you want to restore the files by clicking **Start restore**. Once the restore process is complete, you can view the details in the status overview. If the folder contains more than 10,000 files, the list of restored files is not displayed in real time for performance reasons.

### Monitoring restore activity

This section contains the list of restores launched for the current session. To monitor restore activity:

1. Make sure pop-up notifications are allowed in your browser. If they are blocked, your browser may not display notifications at the top of your screen, which will prevent you from downloading the restored file(s).
2. In the side bar, go to **Restore > Restore Activity**. In the restore list, you can monitor restores based on their job ID, restore date, and restore status. You can cancel an in-progress restore that has failed by clicking the <img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-c0614777fab9c70b2f4b973a2c264d8ce9bf9b13%2Fimage%20(51).png?alt=media" alt="" data-size="line"> icon next to the restore status, then confirming your choice.

## Cross restore

This section describes the cross restore mechanism, how to use restore tokens, and how to perform a cross restore.

### Cross restore mechanism

Cross restore lets you restore data to a machine other than the one from which it was backed up. This type of restore requires a token that can only be generated in the Lina Administration Console. Restore tokens are sent to you by email. See [<mark style="color:blue;">Restore tokens</mark>](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/restore/web-restore.md#restore-tokens) for more details.

The following cross restore types are possible:

* **Between identical operating systems**: File access rights are restored as they were at the time of backup. As a result, the user performing the restore may not have the rights to open the restored files. In this case, the user may need to take ownership of the files and change the rights.
* **Between different operating systems:** During a cross restore between a Windows, macOS, or Linux machine, file access rights are not restored.

The diagram illustrates the mechanism (<mark style="color:blue;">Image 25</mark>). In this example, agent 1 sends a request through the restore interface to restore agent 2's data to agent 1.

<figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2FOBXdpwqXtsnRy8a89vkv%2Fimage.png?alt=media&amp;token=4d390edf-ae99-4186-97a6-abf387582296" alt="" width="563"><figcaption><p><strong>Image 25</strong>: Cross restore mechanism</p></figcaption></figure>

When you perform a cross restore, the Browse feature lets you search for the object to restore, displaying the content of the server catalog rather than the remote machine's disk. At no point do you connect to the remote machine.

### Performing a cross restore

Cross restore lets you restore data to a machine other than the one from which it was backed up. This type of restore requires a token that can only be generated in the Lina Administration Console. Restore tokens are sent to you by email. See [<mark style="color:blue;">Restore tokens</mark>](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/restore/web-restore.md#restore-tokens) for more details.

You can perform a cross restore by connecting to a remote agent through Browse mode.

#### Step 1: connect to a remote agent

1. Right-click the <img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-63d956a95687ed9ad0e6576eb5a3adfed94c6a72%2Fimage%20(47).png?alt=media" alt="" data-size="line"> icon of the Lina Agent in the taskbar, then click **Restore**.
2. If needed, log in to the Lina Agent.
3. Go to the **Browse** section, then click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-56ece2c54b78154111f0cb69fbe468d930ccfc95%2Fimage%20\(48\).png?alt=media) icon next to the section title.
4. In the **Source Agent** section, enable the **Connect to a source agent** option.
5. Enter the token received from your administrator, then click **Validate**.
6. Click the dropdown list to select the agent where the data to restore is located. You can search for a machine or browse the alphabetically sorted machine list. The name of the agent from which you want to restore content is now displayed next to the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-56ece2c54b78154111f0cb69fbe468d930ccfc95%2Fimage%20\(48\).png?alt=media) icon. To change the source agent, click the source agent's name.
7. Click **Save**.

#### Step 2: restore your data

You can perform a folder or file restore in the same way as if you were restoring from your local machine. For more information, see [Restoring recently deleted files](#restoring-recently-deleted-files), [Restoring files or folders using Restore Wizard mode](#restoring-files-or-folders-using-restore-wizard-mode), or [Restoring a file using Browse mode.](#restoring-a-file-using-browse-mode)

## Remote restore

This section describes the remote restore mechanism and how to perform this type of restore.

### Remote restore mechanism

Remote restore lets you perform a restore from a machine other than the one on which the data was backed up. This type of restore requires a connection that lets you access the remote machine and perform the restore.

macOS and Linux users must enable SSH connections to allow remote access from another computer. On macOS, this can be done via **System Preferences > Sharing**. You can select **Remote Login** and choose the user you want to access remotely. The following diagram illustrates this mechanism (<mark style="color:blue;">Image 26</mark>). In this example, agent 1 sends a request through the restore interface to restore agent 2's data to agent 1.

<figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fu662fTC9eLaeT4UwqlWk%2Fimage.png?alt=media&amp;token=cd6479dc-14c0-4a9a-b62e-89850c8b6521" alt="" width="563"><figcaption><p><strong>Image 26</strong>: Remote restore mechanism</p></figcaption></figure>

### Performing a remote restore

Remote restore lets you perform a restore from a machine other than the one on which the data was backed up. This type of restore requires a connection that lets you access the remote machine and perform the restore.

You can perform a folder or file restore in the same way as if you were restoring from your local machine.

By default, remote connection is allowed. However, add the tunable <kbd>HN\_AGENT\_ALLOW\_ONLY\_LOCAL = true</kbd> to the <kbd>advsettings.cfg</kbd> file, located in the HNDB directory, to prevent remote connections from other machines.

#### Step 1: connect to a remote agent

* **Method 1**: use the following URL in your browser to connect to the remote agent:

```
https://<name_or_IP_address_of_your_agent>:23234/AAgent/
```

For more details, see Logging in to your Lina Agent.

* **Method 2**: use your own agent to connect to a remote agent. To do this:
  * Right-click the Lina Agent icon in the taskbar (![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-a706e512334fc35ed41ffb7ab4375db810dcef12%2Fimage%20\(138\).png?alt=media)), then select Manage settings.
  * If needed, log in to the Lina Agent.
  * Go to **Settings > Remote Agent.**
  * Enter the name of the remote agent and the port number used for the agent.
  * Apply your changes.

The remote agent's name is displayed in the agent's header under **Remote agent administration**. If you click the agent's name, you will be redirected to the remote agents section (agent settings).

#### Step 2: restore your data

To restore recently deleted files, see [Restoring recently deleted files.](#restoring-recently-deleted-files)

* To search for and restore specific files, using a name, extension, location, or last modified date, see [Restoring files or folders using Restore Wizard mode.](#restoring-files-or-folders-using-restore-wizard-mode)
* To browse your protected file tree, see all versions of a file that have been backed up over time, and restore a specific version of a file, see [Restoring a file using Browse mode.](#restoring-a-file-using-browse-mode)

## Restoring from another server

This section describes the mechanism for restoring from an alternate server and how to perform this type of restore.

### Restore from another server mechanism

Lina lets you perform a replacement server restore. This is useful in the following situations:

* The server on which you originally backed up your agent is no longer available, but a replica of the server exists.
* You want to restore data backed up by another server, or files or folders using replicated data.

The following diagram illustrates this mechanism (<mark style="color:blue;">Image 27</mark>). In this example, agent 1 sends a request through the restore interface to the replicated server B to restore its data.

<figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2FARg6neD6QC45Zj64FCVJ%2Fimage.png?alt=media&amp;token=326c9f75-cb6a-4c90-9e9c-82c4e451b3a7" alt="" width="563"><figcaption><p><strong>Image 27</strong>: Mechanism for restoring from another server</p></figcaption></figure>

### Performing a restore from an alternate server

#### Step 1: connect to an alternate server

1. Right-click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-0c41cd15ab439b5bcdbb43eb23dffb62b1a0d86b%2Fimage%20\(144\).png?alt=media) icon of the Lina Agent in the taskbar, then click **Restore**.
2. If needed, log in to the Lina Agent.
3. Go to the **Browse** section, then click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-3150ffe3e7494bd35e770e84cfd5d90ef07067a2%2Fimage%20\(142\).png?alt=media) icon next to the section title.
4. In the **Source Server** section, select a server other than the default server, then enter its name and the port number used to reach that server.
5. Click **Save**.

#### Step 2: restore your data

You can perform a folder or file restore in the same way as if you were restoring from your local machine. For more details, see [Restoring a file using Browse mode.](#restoring-a-file-using-browse-mode)

> **Important**: Make sure not to leave Browse mode before restoring your files, or you will need to reconnect to your agent or your server.

## Combined advanced restore

Lina lets you combine all advanced restore modes, for example to perform a cross restore from a remote machine through the replicated server.

### Combined advanced restore mechanism

The diagram illustrates this mechanism (<mark style="color:blue;">Image 28</mark>). In this example, agent 1 sends a request through the restore interface to the replicated server B to restore agent 2's data to agent 3.

<figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2FScE9lBROFK5syvEv18Uj%2Fimage.png?alt=media&amp;token=3a6c2157-50dd-4116-8dee-1063a6ce3a38" alt="" width="563"><figcaption><p><strong>Image 28</strong>: Combined advanced restore mechanism</p></figcaption></figure>

### Performing a combined advanced restore

#### Step 1: connect to an alternate server

1. Right-click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-e12904db3cd78a6f5f61c18fb273528e23b4f429%2Fimage%20\(148\).png?alt=media) icon of the Lina Agent in the taskbar, then click **Restore**.
2. If needed, log in to the Lina Agent.
3. Go to the **Browse** section, then click the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-6936929d7e46fc50d3d8e83a0e1a00876af0a87c%2Fimage%20\(146\).png?alt=media) icon next to the section title.
4. In the **Source Server** section, select a server other than the default server, then enter its name and the port number used to reach that server.
5. In the **Source Agent** section, enable the **Connect to a source agent** option.
6. Enter the token received from your administrator, then click **Validate**.
7. Click the dropdown list to select the agent where the data to restore is located. You can search for an agent or browse the alphabetically sorted machine list. The name of the agent from which you want to restore content is now displayed next to the ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-6936929d7e46fc50d3d8e83a0e1a00876af0a87c%2Fimage%20\(146\).png?alt=media) icon. To change the source agent, click the source agent's name.
8. Click **Save**.

#### Step 2: restore your data

You can perform a folder or file restore in the same way as if you were restoring from your local machine. For more details, see [Restoring a file using Browse mode.](#restoring-a-file-using-browse-mode)

> **Important**: Make sure not to leave Browse mode before restoring your files, or you will need to reconnect to your agent or your server.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/restore/restoring-data-from-the-agent-interface.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
