How to take KVM VPS backup manually?

Have more questions? Submit a request

Question

 How to take KVM VPS backup manually?

Answer

Assume it is necessary to backup a VPS with KVM ID kvm101.

  1. Connect to KVM node via SSH
  2. Find the location of an image used by the VPS:

    # virsh domblklist kvm101
    Target Source
    ------------------------------------------------
    hda /dev/vps/kvm101_img
    hdc -

  3. Shut down the corresponding VPS:

    # virsh shutdown kvm101

  4. Create a backup using the image path from step 2 with the command:

    # dd if=/dev/vps/kvm101_img | gzip | dd of=/home/kvm101_backup.gz bs=4096

The backup will be stored in the file /home/kvm101_backup.gz

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.