Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Backup
  • Getting started
    • All guides
    • Activating the service
      • Creating and connecting a Linux VM
      • Creating and connecting a Windows VM
      • Connecting a Linux VM
      • Connecting a Linux VM with OS Login
      • Connecting a Windows VM
      • Updating a VM connection to Cloud Backup
      • Updating or restoring a Cloud Backup agent
      • Updating a Linux VM connection with OS Login
      • Viewing VM connection settings
      • Viewing backup log
      • Deleting a VM from Cloud Backup
    • Viewing operations with resources
    • Viewing backup statistics
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • Troubleshooting
  1. Step-by-step guides
  2. VM in Cloud Backup
  3. Updating a VM connection to Cloud Backup

Updating a VM connection to Cloud Backup

Written by
Yandex Cloud
Updated at March 6, 2025

Note

If you have deleted a VM from Cloud Backup and want to reconnect it to the service, use this guide:

  • Connecting a Linux VM
  • Connecting a Linux VM with OS Login
  • Connecting a Windows VM

After restoring a VM from a backup of another VM, the source VM the backup was created from becomes outdated.

To avoid conflicts between the two VMs when making backups, update the outdated VM's connection to Cloud Backup:

  1. Reconnect to Cloud Backup from the outdated VM:

    Linux
    Windows
    1. Connect to the VM over SSH.

    2. Install the jq, awk, curl, and uuidgen utilities on the VM:

      Note

      If you use a distribution other than Ubuntu, install the specified utilities using your package manager commands.

      sudo apt install jq
      sudo apt install gawk
      sudo apt install curl
      sudo apt install uuid-dev
      

      If you use the Astra Linux distribution, you also need to install the uuid-runtime package:

      sudo apt install uuid-runtime
      
    3. Run this command:

      curl 'https://storage.yandexcloud.net/backup-distributions/agent_reinit.sh' | sudo bash
      

      Result:

      ...
      Deleting old resource bound for instance_id epdoe4g6dbq4******** and resource_id: F07543A1-BDC1-415A-A143-C18E********
      Updating ids in Cloud Backup
      Finished
      
    1. Connect to the VM via RDP.

    2. Run Windows PowerShell.

      Note

      The PowerShell execution policies must allow scripts. If they do not, allow scripts and restart PowerShell. For more information, see the Microsoft documentation.

    3. Run this command:

      . { iwr -useb https://storage.yandexcloud.net/backup-distributions/agent_reinit.ps1 } | iex
      

      Result:

      ...
      Backup agent reinit completed after 204 s!
      
  2. Disconnect from the VM.

  3. Make sure the outdated VM is no longer on the list of VMs connected to Cloud Backup:

    Management console
    1. In the management console, select the folder where Cloud Backup is connected.

    2. In the list of services, select Cloud Backup.

    3. On Virtual machines tab, check that the outdated VM is not listed with the label.

      If the VM is still there, click , select Delete and confirm deletion.

  4. Link your VM to a backup policy.

Was the article helpful?

Previous
Connecting a Windows VM
Next
Updating or restoring a Cloud Backup agent
© 2025 Direct Cursus Technology L.L.C.