Activating the service
To activate the service, you need at least the backup.editor role for the folder in which you want to create backups of VMs or BareMetal servers.
When you enable the service, the backup provider starts. For more information about the backup provider and data sent to it, see Service activation and backup provider.
-
In the management console
, select the folder where you want to create a VM or Yandex BareMetal server with a Cloud Backup connection. -
Go to Cloud Backup.
-
Click Activate.
If there is no Activate button, and you can create a VM connected to Cloud Backup, it means the service has already been activated.
After activation, the system automatically creates the following backup policies:
Default daily: Daily incremental backup with the last 15 backups retained.Default weekly: Weekly incremental backup with the last 15 backups retained.Default monthly: Monthly incremental backup with the last 15 backups retained.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
-
View the description of the CLI command to activate the service:
yc backup provider activate --help -
Activate the service in the default folder:
yc backup provider activate --asyncWhere
--asyncdisplays the operation progress info. This is an optional parameter. -
Once you execute the command, you will get the activation warning:
This command will activate backup provider for your folder. Do you confirm this action to be executed? [Yes/no][y/N]. Confirm the activation by typingyesoryin the terminal.Tip
Use the
--forceflag to activate the service without a confirmation.Result:
id: cdgmnefxiatx******** description: activate provider created_at: "2024-10-14T09:03:47.960564Z" created_by: ajec1gaqcmtr******** modified_at: "2024-10-14T09:03:47.960564Z" done: true metadata: '@type': type.googleapis.com/yandex.cloud.backup.v1.ActivateProviderMetadata folder_id: b1go3el0d8fs******** response: '@type': type.googleapis.com/google.protobuf.Empty value: {}
After activation, the system automatically creates the following backup policies:
Default daily: Daily incremental backup with the last 15 backups retained.Default weekly: Weekly incremental backup with the last 15 backups retained.Default monthly: Monthly incremental backup with the last 15 backups retained.
If you prefer not to create them, use the --skip-default-policy parameter.
Use the Activate REST API method for the Provider resource or the ProviderService/Activate gRPC API call.