Updating a VM connection to Cloud Backup
After restoring a VM from a backup of another VM, the source VM the backup was created from becomes outdated.
To avoid conflicts between the two VMs when making backups, update the outdated VM's connection to Cloud Backup:
-
Reconnect to Cloud Backup from the outdated VM:
LinuxWindows-
Connect to the VM over SSH.
-
Install the jq
, awk , curl , and uuidgen utilities on the VM:Note
If you use a distribution other than Ubuntu, install the specified utilities using your package manager commands.
sudo apt install jq sudo apt install gawk sudo apt install curl sudo apt install uuid-dev
-
Run this command:
curl 'https://storage.yandexcloud.net/backup-distributions/agent_reinit.sh' | sudo bash
Result:
... Deleting old resource bound for instance_id epdoe4g6dbq4******** and resource_id: F07543A1-BDC1-415A-A143-C18E******** Updating ids in Cloud Backup Finished
-
Connect to the VM via RDP.
-
Run Windows PowerShell.
-
Run this command:
. { iwr -useb https://storage.yandexcloud.net/backup-distributions/agent_reinit.ps1 } | iex
Result:
... Backup agent reinit completed after 204 s!
-
-
Disconnect from the VM.
-
Make sure the outdated VM is no longer on the list of VMs connected to Cloud Backup:
Management console-
In the management console
, select the folder where Cloud Backup is connected. -
In the list of services, select Cloud Backup.
-
In the
Virtual machines tab, check that the list does not contain the outdated VM marked as .If the outdated VM is still there, click
next to it, select Delete, and confirm the deletion.
-
-
Link your VM to a backup policy.