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. Connecting a Linux VM

Connecting a Linux VM to Cloud Backup

Written by
Yandex Cloud
Updated at April 18, 2025

You can back up Compute Cloud VMs with supported Linux-based operating systems.

For the Cloud Backup agent to work correctly, the VM must meet the minimum requirements.

Warning

To connect a VM to Cloud Backup, make sure its service account, public IP, and security group are set up correctly. For more information, see Connecting Compute Cloud VMs and Yandex BareMetal servers to Cloud Backup.

If you have deleted a VM from Cloud Backup and want to reconnect it, follow the steps below.

To connect a Linux VM to Cloud Backup:

  1. Create a service account with the backup.editor role.

  2. Connect the previously created service account to the VM.

  3. Set up network access for your VM.

  4. Connect to the VM over SSH.

  5. Run the following commands:

    Ubuntu
    CentOS
    sudo apt update && \
    sudo apt install -y jq && \
    curl https://storage.yandexcloud.net/backup-distributions/agent_installer.sh | sudo bash
    

    Result:

    ...
    Agent registered with id D9CA44FC-716A-4B3B-A702-C6**********
    
    sudo yum install epel-release -y && \
    sudo yum update -y && \
    sudo yum install jq -y && \
    curl https://storage.yandexcloud.net/backup-distributions/agent_installer.sh | sudo bash
    

    Result:

    ...
    Agent registered with id D9CA44FC-716A-4B3B-A702-C6**********
    

After that, you can link your VM to backup policies.

To connect an existing VM to Cloud Backup, you can also take snapshots of the VM disks and create a new VM based on those snapshots by selecting the backup option.

See alsoSee also

  • Creating a Linux VM with a connection to Cloud Backup
  • Linking a VM to a backup policy
  • Creating a backup policy
  • Restoring a VM or Yandex BareMetal server from a backup

Was the article helpful?

Previous
Creating and connecting a Windows VM
Next
Connecting a Linux VM with OS Login
© 2025 Direct Cursus Technology L.L.C.