---
description: >-
  A step-by-step guide on downloading files from the Recovery VM using SCP or
  WinSCP, either to a local system or directly to the original VM, ensuring
  secure file recovery.
---

# Download Files from the Recovery VM

## Accessing backed-up VM data from the Recovery VM.

This is how Trilio generates the SSH command on the UI.

<figure><img src="https://4232718991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0y5L9hEaydorneyZK1L8%2Fuploads%2FBDJ25KrVGZKu0YmJpKBl%2Fimage.png?alt=media&#x26;token=2d0c6abd-c7ef-45c0-a006-d7da49c53c4c" alt=""><figcaption></figcaption></figure>

Files from the Recovery VM can be downloaded either locally or directly to the original VM using the SCP command or the WinSCP tool.

### Follow the steps below for each method:

#### 1. **Download Files Locally Using SCP:**

*   Run the following command to securely copy files:

    ```sh
    scp -P <port-number> -i <private-key-path> sshuser@<ip-addr>:<file-path> <dest-path>  
    ```
* Replace the placeholders with the details provided by Trilio in the UI:
  * `<port-number>` and `<ip-addr>`: Information provided by Trilio in the SSH command provided in the UI.
  * `<private-key-path>`: Path to the private key generated in the [prerequisites](../file-level-recovery-for-virtualmachine-backups#prerequisites) section.
  * `<file-path>`: The file path on the Recovery VM Manager.
  * `<dest-path>`: The local destination path where you want to save the file.

#### 2. **Download Files Locally Using WinSCP:**

* Follow these steps to transfer files using WinSCP:
  1.  **Enter Connection Details:**

      * **Hostname:** Enter the service IP address from the SSH command provided in the Trilio UI.
      * **Port:** Enter the port number specified in the UI.
      * **Username:** Use the username provided in the SSH command.
      * **Private Key:** Navigate to **Advanced → SSH → Authentication** and select the private key generated during the [prerequisites](../file-level-recovery-for-virtualmachine-backups#prerequisites).

      **WinSCP Inputs:**

      ![WinSCP Inputs](https://4232718991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0y5L9hEaydorneyZK1L8%2Fuploads%2Fgit-blob-73a7d1ec3728971b6212335cf61864c251a4414e%2FWinSCP-Inputs.png?alt=media)

      **WinSCP PrivateKey Selection:**

      ![WinSCP PrivateKey Selection](https://4232718991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0y5L9hEaydorneyZK1L8%2Fuploads%2Fgit-blob-535a9bff6d6f0965287519b3482510899b618a31%2FWinSCP-private-key-selection.png?alt=media)
  2.  **Login to the SSH-Enabled Server:**

      * After logging in, navigate through the directories in the WinSCP interface.
      * Find the VM backup files at the path specified by Trilio in the UI.

      ![Backed-up VM Data](https://4232718991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0y5L9hEaydorneyZK1L8%2Fuploads%2Fgit-blob-3fd4b8fb2da15c2a20c9494dbe73b88ccf60b74d%2FRecovery-VM-Manager-Data.png?alt=media)
  3.  **Download Files:**

      * Select the files you want to download, right-click, and choose **Download** to save them locally.

      **Download Files:**

      ![WinSCP Download File](https://4232718991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0y5L9hEaydorneyZK1L8%2Fuploads%2Fgit-blob-1d6ad1e6bc4281501fe3303ec80431b35823ac5a%2FWinSCP-Download-File.png?alt=media)

#### 3. **Transfer Files Directly to the Original VM Using SCP:**

* To download files directly to the original VM, first SSH into the original VM.
* Then follow the same steps outlined in [**Download Files Locally Using SCP**](broken-reference).

#### 4. **Transfer Files Directly to the Original VM Using WinSCP:**

* Establish two separate sessions in WinSCP: one for the Recovery VM and the other for the original VM.
*   In the Recovery VM session, locate the desired files, right-click, and select **Copy**.

    ![WinSCP Copy File From RecoveryVM Manager](https://4232718991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0y5L9hEaydorneyZK1L8%2Fuploads%2Fgit-blob-b4fac8b17168c51d995414bb54fe9f09fa76233f%2FWinSCP-COPY-Remote-File.png?alt=media)
*   Switch to the original VM session, navigate to the target directory, right-click, and choose **Paste** to save the files.

    ![WinSCP Paste File From RecoveryVM Manager](https://4232718991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0y5L9hEaydorneyZK1L8%2Fuploads%2Fgit-blob-a771cb61d2ae0bb2bf35c47d6524cc52ad607356%2FWinSCP-Paste-to-Original-VM.png?alt=media)
