VK Cloud logo

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.

Configure backup

After completing all the steps in this guide, you will:

  1. Create a backup of a virtual machine.
  2. Delete the VM.
  3. Restore the VM from the backup.

Preparatory steps

  1. To test it, create a new Linux-based VM named test-vm.

  2. 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

1. Create a backup manually

  1. Go to the VK Cloud management console.
  2. Go to the Cloud Computing → Virtual Machines section.
  3. Click  for the desired VM and select Create backup.
  4. Click the Create backup button.

A backup for the test-vm VM will appear in the Cloud Backup → Backup section on the Manual tab.

2. Delete the VM

  1. In the list of virtual machines, click  for the test VM you want to delete.
  2. Select Delete and confirm the action.

3. Restore the VM from the backup

  1. Go to the Cloud Backup → Backup section.

  2. Go to the Manual tab.

  3. Click the value in the Restore points column for the test-vm VM. A page with the backup you created manually will open.

  4. Click  for the backup and select Restore from backup.

  5. 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.

  6. Click the Restore instance button.

  7. Go to the Cloud Computing → Virtual Machines section and find the test-vm-restored VM in the list.

  8. Make sure that the state of the test-vm-restored VM matches the state of test-vm before 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.txt

    Example of successful output:

    Success

Delete unused resources

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:

  1. Delete the test-vm-restored virtual machine:

    1. Go to the Cloud Computing → Virtual Machines section.
    2. In the list of virtual machines, click  for the test-vm-restored VM.
    3. Select Delete and confirm the action.
  2. Delete the backup:

    1. Go to the Cloud Backup → Backup section, Manual tab.
    2. Click  for the test-vm VM, select Delete, and confirm the action.

Video guides

The videos show manual and automatic backup in the Cloud Backup service, as well as creating a backup plan.

FAQ

Was this article helpful?