Skip to content

Manual backup/restore of KVM VPS

Backup

1. Stop the required VPS in SolusVM > Virtual Servers > VPS > Shutdown. Note VMID of VPS, for example, it is kvm101

2. Connect to the source slave node over SSH.

3. Find a logical volume of the VPS:

lvdisplay | grep "LV Path" | grep "kvm101"
LV Path /dev/yourvg/kvm101_img

4/. Create a copy of the logical volume:

dd if=/dev/yourvg/kvm101_img | gzip | dd of=/home/kvm101_backup.gz bs=4096 status=progress

Restore

1. Create a VPS in SolusVM with the same resources. Let's assume the VPS has kvm ID kvm101.

2. Restore the copy to the created logical volume:

dd if=/home/kvm101_backup.gz | gzip -d | dd of=/dev/yourvg/kvm101_img bs=4096 status=progress
Back to top