Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Backup
    • All guides
    • Activating the service
      • Creating a backup
      • Restoring a Compute Cloud VM or BareMetal server from a backup
      • Restoring an external VM or server from a backup
      • Restoring a Compute Cloud VM or BareMetal server from a backup of another VM or server
      • Restoring individual directories and files from a backup
      • Viewing the parameters of backup disks and partitions
      • Deleting a backup
      • Deleting all backups of a resource
    • Restoring the Cloud Backup agent
    • Viewing operations on service resources
    • Limiting RAM usage by the Cloud Backup agent
    • Viewing backup statistics
    • Setting up Monium alerts
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • Troubleshooting
  1. Step-by-step guides
  2. Backups
  3. Restoring a Compute Cloud VM or BareMetal server from a backup

Restoring a Yandex Compute Cloud VM or Yandex BareMetal server from a backup

Written by
Yandex Cloud
Updated at November 2, 2026
View in Markdown

Note

You cannot restore a VM backup to a server or a server backup to a VM. However, you can restore an external server backup to a Yandex BareMetal server.

To avoid errors when restoring from a backup, start by comparing the disks and partitions of the backup against those of the VM or server you are restoring to. For more information, see Viewing the parameters of backup disks and partitions.

Tip

If the current VM is down, create a new one with a connection to Cloud Backup and restore a backup to it. To restore from a backup, the new VM must have the Running status.

To restore a Compute Cloud VM or BareMetal server from a backup:

Management console
CLI
API
  1. In the management console, select the folder containing the backup.
  2. Navigate to Cloud Backup.
  3. In the left-hand panel, select Backups.
  4. Depending on what resource you want to restore, select the Virtual machines or BareMetal servers tab.
  5. In the line with the backup to restore the VM or server from, click and select Restore VM or Recover BareMetal server, respectively.
  6. In the window that opens, select the VM or server the selected backup was made from. In the list, this VM or server will be labeled (current) or (current), respectively.
  7. Click Restore.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id.

If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. See the description of the CLI command to restore a resource from a backup:

    yc backup backups recover --help
    
  2. Get the ID of the backup:

    yc backup backups list
    

    Result:

    +--------------------------------------+--------------------------------------+----------------------+--------------------------------------+----------------------+------+------------------+--------+---------------------+
    |                  ID                  |              ARCHIVE ID              | COMPUTE INSTANCE ID  |             RESOURCE ID              |      POLICY ID       | TYPE |      DISKS       |  SIZE  |     CREATED AT      |
    +--------------------------------------+--------------------------------------+----------------------+--------------------------------------+----------------------+------+------------------+--------+---------------------+
    | ab55286e-795f-44dc-90af-b718******** | ef3e8144-fb65-6a59-5ec1-3162******** | jklp0o9i8012******** | 2465BE59-5687-4539-9589-DF7E******** | abc7n3wln123******** | FULL | Disk 1 (15.0 GB) | 1.5 GB | 2023-07-07 16:00:15 |
    | cd50e147-7dfa-449f-816b-67f8******** | gh06b195-c095-1234-7809-0700******** | mnoa5s6d8345******** | 135C519D-B5A3-4781-8DFA-40B3******** | deflqbiwc456******** | FULL | Disk 1 (15.0 GB) | 1.6 GB | 2023-07-03 10:00:10 |
    +--------------------------------------+--------------------------------------+----------------------+--------------------------------------+----------------------+------+------------------+--------+---------------------+
    
  3. Get the ID of the resource to restore:

    yc backup vm list
    

    Result:

    +----------------------+--------------------------------------+--------+---------+--------+-----------------+----------------+---------------------+---------------------+--------+---------------------+---------------------+-------------+
    |     INSTANCE ID      |             RESOURCE ID              | ONLINE | ENABLED | STATUS | STATUS PROGRESS | STATUS DETAILS |  LAST BACKUP TIME   |  NEXT BACKUP TIME   | ACTIVE |     CREATED AT      |     UPDATED AT      |    TYPE     |
    +----------------------+--------------------------------------+--------+---------+--------+-----------------+----------------+---------------------+---------------------+--------+---------------------+---------------------+-------------+
    | ly5mzirn6xhd******** | 4fc0d855-b76c-****-99a4-bf01******** | true   | true    | IDLE   |               0 |                |                     |                     | true   | 2026-04-29 05:45:34 | 2026-04-29 05:54:21 | BMS         |
    | epd930eo5156******** | 6c58577d-409d-****-bc10-f464******** | true   | true    | IDLE   |               0 |                |                     |                     | true   | 2026-04-29 08:46:47 | 2026-04-29 08:54:00 | COMPUTE     |
    | cdgd246kiae3******** | d1fdd342-0ea8-****-9906-fa6c******** | false  | true    | IDLE   |               0 |                | 2026-04-27 13:07:05 | 2026-04-27 13:07:05 | true   | 2026-04-24 14:23:06 | 2026-04-29 08:54:33 | EXTERNAL_VM |
    +----------------------+--------------------------------------+--------+---------+--------+-----------------+----------------+---------------------+---------------------+--------+---------------------+---------------------+-------------+
    
  4. Restore the Compute Cloud VM or BareMetal server from the backup:

    yc backup backups recover \
      --source-backup-id <backup_ID> \
      --destination-instance-id <VM_or_server_ID>
    

    Where:

    • --source-backup-id: ID of the backup to restore the Compute Cloud VM or BareMetal server from.
    • --destination-instance-id: ID of the Compute Cloud VM or BareMetal server to restore the backup to.

    Result:

    ...1s...6s...11s ... 9m4s...9m9s...done (9m9s)
    

    For more information about the command, see the CLI reference.

Use the startRecovery REST API method for the Backup resource or the BackupService/StartRecovery gRPC API call.

Note

If you are using LVM to manage the disk space of the protected resource, learn how to restore resources with LVM in Cloud Backup.

Useful linksUseful links

Restoring a Compute Cloud VM or BareMetal server from a backup of another VM or server

Was the article helpful?

Previous
Creating a backup
Next
Restoring an external VM or server from a backup
© 2026 Direct Cursus Technology L.L.C.