Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • 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
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 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 or restoring a Cloud Backup agent
      • Viewing a VM connection status
      • Viewing a backup log
      • Deleting a VM from Cloud Backup
    • Viewing service resource operations
    • Limiting RAM usage by the Cloud Backup agent
    • Viewing backup statistics
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • Troubleshooting
  1. Step-by-step guides
  2. VM in Cloud Backup
  3. Reconnecting a Linux VM with OS Login to Cloud Backup

Reconnecting a Linux VM with OS Login to Cloud Backup

Written by
Yandex Cloud
Updated at June 9, 2025

Note

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

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

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:

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

    2. See the description of the CLI command to reinstall the Cloud Backup agent:

      yc backup agent reinstall --help
      
    3. Run this command:

      yc backup agent reinstall \
        --id <VM_ID>
      

      Where id is the unique ID of the VM. This is a required setting.

      Once you execute the command, you will get the Cloud Backup agent re-installation warning: This command will launch commands on specified instance to reinstall backup agent via oslogin. Do you confirm this actions to be executed? [Yes/no][y/N]. Confirm the reinstallation: in the terminal, type yes and press Enter. The Cloud Backup agent reinstallation will start. It will take some time.

      Result:

      ...
      Deleting old resource bound for instance_id epdoe4g6dbq4******** and resource_id: F07543A1-BDC1-415A-A143-C18E********
      Updating ids in Cloud Backup
      Finished
      
    4. (Optional) To view Cloud Backup agent installation logs, run this command:

      yc backup agent debug-info \
        --id <VM_ID>
      
  2. 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.

  3. Link your VM to a backup policy.

Was the article helpful?

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