Question
How to take KVM VPS backup manually?
Answer
Assume it is necessary to backup a VPS with KVM ID kvm101.
- Connect to KVM node via SSH
-
Find the location of an image used by the VPS:
# virsh domblklist kvm101
Target Source
------------------------------------------------
hda /dev/vps/kvm101_img
hdc - - Shut down the corresponding VPS:
# virsh shutdown kvm101
- 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
Comments
0 commentsPlease sign in to leave a comment.