Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Backup
    • All guides
    • Activating the service
      • Creating and connecting a Linux VM
      • Creating and connecting a Windows VM
      • Reconnecting a VM to Cloud Backup
      • Reconnecting a Linux VM with OS Login to Cloud Backup
      • Updating the Cloud Backup agent
      • Viewing a VM connection status
      • Viewing the backup log
      • Deleting a VM from Cloud Backup
    • 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. Compute Cloud in Cloud Backup
  3. Reconnecting a VM to Cloud Backup

Reconnecting a VM to Cloud Backup

Written by
Yandex Cloud
Updated at August 5, 2026
View in Markdown

Note

If you have deleted a Yandex Compute Cloud VM from Cloud Backup and want to reconnect it, use these tutorials:

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

Warning

When reconnecting, the VM is added to Cloud Backup as a new resource. Backups of the new VM are stored as per the linked backup policy.

The backup policy rules do not apply to the old VM's backups. Their storage is subject to the pricing policy. If you do not need those backups, delete them manually or use bulk delete.

After you restore one VM from a backup of another one, the source VM the backup was created from becomes outdated. To avoid conflicts between the two VMs during backup, reconnect the outdated VM to Cloud Backup.

Reconnecting can also help when the Cloud Backup agent stops working and goes offline.

To reconnect a VM 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 are using a distribution other than Ubuntu, install the specified tools using your package manager.

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

      For some distributions, you may also need to install the uuid-runtime package:

      sudo apt install uuid-runtime -y
      
    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 over RDP.

    2. Run Windows PowerShell.

      Note

      The PowerShell execution policies must allow scripts. If not, allow scripts and restart PowerShell. For more information, see this Microsoft guide.

    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. Navigate to 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 an existing Windows VM
Next
Reconnecting a Linux VM with OS Login to Cloud Backup
© 2026 Direct Cursus Technology L.L.C.