Connecting a Linux VM to Cloud Backup
Written by
Updated at February 28, 2024
You can back up Compute Cloud VMs with supported Linux-based operating systems.
For the Cloud Backup agent to run properly, VMs 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 to Cloud Backup.
-
Connect the previously created service account to the VM.
-
Set up network access for your VM.
-
Connect to the VM over SSH.
-
Run the following commands:
UbuntuCentOSsudo 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.