Connecting a Linux VM to Cloud Backup
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 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:
-
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.