Cloud Backup: configure backup
Cloud Backup is a service for creating and storing backups of virtual machines, databases, and analytical databases. You can configure regular backups as well as create backups manually before important changes.
Backups allow you to restore individual files, directories, or the entire system in case of a failure or data loss. This protects business-critical information such as customer data, financial reports, CRM systems, and configuration files.
Start working with the Cloud Backup service in any convenient way:
- Use the guide to test restoring a deleted VM from a backup.
- Watch the video about working with the Cloud Backup service.
After completing all the steps in this guide, you will:
-
To test it, create a new Linux-based VM named
test-vm. -
Create a file with arbitrary content on the VM that will be used to verify recovery from the backup.
Example command to create a file:
echo "Success" > test.txt
- Go to the VK Cloud management console.
- Go to the Cloud Computing → Virtual Machines section.
- Click
for the desired VM and select Create backup.
- Click the Create backup button.
A backup for the test-vm VM will appear in the Cloud Backup → Backup section on the Manual tab.
- In the list of virtual machines, click
for the test VM you want to delete.
- Select Delete and confirm the action.
-
Go to the Cloud Backup → Backup section.
-
Go to the Manual tab.
-
Click the value in the Restore points column for the
test-vmVM. A page with the backup you created manually will open. -
Click
for the backup and select Restore from backup.
-
Set the recovery parameters:
-
Recovery type: select
New instance. -
Virtual machine name: specify
test-vm-restored. -
Network: select
External network (internet).On the external network, the virtual machine will be automatically assigned an external IP address.
-
Virtual machine key: select
Create a new key. -
Availability zone: select
Moscow (ME1) -
Disk type: select
HDD.
-
-
Click the Restore instance button.
-
Go to the Cloud Computing → Virtual Machines section and find the
test-vm-restoredVM in the list. -
Make sure that the state of the
test-vm-restoredVM matches the state oftest-vmbefore the backup. To do this, check the presence and content of the file you created during the preparation step.Example command to verify the file:
cat test.txtExample of successful output:
Success
The restored test-vm-restored virtual machine is billed, and the backup occupies disk space in the paid storage of the VK Object Storage service. If you no longer need them:
-
Delete the
test-vm-restoredvirtual machine:- Go to the Cloud Computing → Virtual Machines section.
- In the list of virtual machines, click
for the
test-vm-restoredVM. - Select Delete and confirm the action.
-
Delete the backup:
- Go to the Cloud Backup → Backup section, Manual tab.
- Click
for the
test-vmVM, select Delete, and confirm the action.
The videos show manual and automatic backup in the Cloud Backup service, as well as creating a backup plan.