[Yandex Cloud documentation](../../../index.md) > [Yandex Cloud Backup](../../index.md) > [Step-by-step guides](../index.md) > Backups > Restoring individual directories and files from a backup

# Restoring individual directories and files on a VM or BareMetal server


You can restore individual files and directories from a backup to any VM or BareMetal server in the `Running` [status](../../../compute/concepts/vm-statuses.md#list-of-statuses) connected to Cloud Backup:

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the folder containing the backup.
  1. Navigate to **Cloud Backup**.
  1. In the left-hand panel, select ![backups](../../../_assets/console-icons/archive.svg) **Backups**.
  1. Depending on the resource you want to recover files and directories for, select the **Virtual machines** or **BareMetal servers** tab.
  1. Select the backup to restore individual files or directories from.
  1. In the file manager that opens, select the files and directories you want to restore.
  1. In the bottom panel, click ![file](../../../_assets/console-icons/file-plus.svg) **Add to list of files to be recovered**.
  1. Add all files and directories you want to restore, one by one, to the **To recover** list.
  1. Click **Recover files**, and in the window that opens:
      * Select a VM or BareMetal server to recover the files and directories to.

        {% note info %}

        Make sure the VM or BareMetal server you are recovering the files and directories to is [connected](../../concepts/vm-connection.md) to Cloud Backup.

        {% endnote %}

      * (Optional, VMs only) Specify whether to reboot the VM following recovery.
      * Select a location to restore the files to:
        * `Original`: Restore the files to their original directories.
        * `Custom`: Restore the files to a user-defined directory.

          For custom location, in the file manager that opens, select the directory to restore the files to. 
          
          To create a new directory, click ![new-folder](../../../_assets/console-icons/folder-plus.svg) **Create** and specify its name.

          {% note info %}

          A directory name may not contain the following characters: `\`, `/`, `:`, `*`, `?`, `"`, `'`, `<`, `>`, `|`.

          {% endnote %}

  1. Select an action to perform when file names from a backup match file names on a VM or BareMetal server:
      * `Overwrite all files in folder`.
      * `Overwrite only existing files`.
      * `Do not overwrite files`: Files that are not in the source directory will not be written either.
  1. Click **Restore**.

  You can check the progress of file recovery on the ![operations](../../../_assets/console-icons/list-check.svg) **Operations** tab in the **Status** column.

{% endlist %}