Getting started with Cloud Backup
Cloud Backup is a service for creating backups and restoring Yandex Cloud resources and their data.
You can back up Compute Cloud VMs with supported operating systems.
For the Cloud Backup agent to run properly, VMs must meet the minimum requirements.
To get started with Cloud Backup:
Activate the service
Note
The minimum folder role required for activating the service is backup.editor
(see the role description).
To activate the service:
- In the management console
, select the folder where you want to activate the service. - In the list of services, select Cloud Backup.
- Click Activate.
Set up a service account
-
In the management console
, select the folder where the service is activated. -
At the top of the screen, go to the Service accounts tab.
-
Click Create service account.
-
Enter a name for the service account. The name format requirements are as follows:
- The name must be from 3 to 63 characters long.
- It may contain lowercase Latin letters, numbers, and hyphens.
- The first character must be a letter and the last character cannot be a hyphen.
-
Click
backup.editor
role. -
Click Create.
Create a VM
- In the management console
, select the folder where the service is activated. - In the list of services, select Compute Cloud.
- In the left-hand panel, select
- Under Basic parameters:
- Enter a name and description for the VM.
- Select an availability zone to place your VM in.
- Under Image/boot disk selection, select Ubuntu 20.04.
- Under Network settings:
- Select the cloud network and subnet to connect the VM to. If you do not have a network, click
-
In the window that opens, enter the network name and specify the folder to host the network.
-
Click Create.
Each network must have at least one subnet. If there is no subnet, create one by selecting
-
- Set up network access for your VM.
- Select the cloud network and subnet to connect the VM to. If you do not have a network, click
- Under Backups, select the Cloud Backup connection option for your VM.
- Under Access, specify the information required to access the instance:
-
Select the service account with the
backup.editor
role. -
Enter the username in the Login field.
-
In the SSH key field, paste the contents of the public key file.
You will need to create a key pair for the SSH connection yourself, see Creating an SSH key pair.
-
- Click Create VM.
For more information, see Creating VMs.
Link your VM to a backup policy
When the VM switches to the Running
status, a Cloud Backup agent will start installing on it. This may take from 5 to 10 minutes.
-
Make sure the Cloud Backup agent has been installed:
Management console- In the management console
, select the folder where the service is activated. - In the list of services, select Compute Cloud.
- Select the appropriate VM.
- Check that the value of the Cloud Backup field in the Backups section is
Connected
.
Once you install the agent, the VM will be added to Cloud Backup in the
Note
If the Cloud Backup agent fails to install after 10 minutes, contact
support for troubleshooting. - In the management console
-
Link your VM to a backup policy:
Management console- In the management console
, select the folder where the service is activated. - In the list of services, select Cloud Backup.
- Go to the
- Select one of the policies created by default.
- Under Virtual machines, click
- Select the appropriate VM and click Attach.
You can also link your VM to a backup policy in Compute Cloud:
Management console- In the management console
, select the folder where the service is activated. - In the list of services, select Compute Cloud.
- Select the appropriate VM.
- Under Backups, in the Backup policies field, click Select.
- Select one of the policies created by default and click Save.
- In the management console