Mar 9, 2012

Creating Xen backups


I’m looking for a way to create Xen (HVM) backups, using LVM. I know xm save but that is a) inefficient space wise, b) the VM will shut down. I found rsnapshot which is able to create an LVM snapshot, but to restore this I will have to copy all files over to the machine (instead of just restoring the complete LVM, everything seems to be individual files).

Is there any backup software you recommend? I’m running CentOS on my Xen host. Some requirements:

  • It can be paid software but not too expensive (personal use)
  • It should have differential (like a full backup, then an incremental backup (to preserve space)).
  • Easy to restore the Xen VM (currently rsnapshot needs to copy all files over, instead of one .img file to restore or something similar).

Thanks in advance.

Asked by Devator


If this is for personal use I would recommend to

  1. Snapshot the LV (an LV corresponds to a DomU-disk, I assume?)
  2. Make a full copy of that LV into a Backup-LV of the same size

If it is a Linux filesystem you can just use mkfs and then do an rsync from the RO-mounted source to the RW-mounted target.

If it is NTFS use the NTFS-tools described at

Answered by Nils

Related posts:

  1. Backup Xen domU machines while running
  2. Xen image file vs partition/LVM volume performance
  3. Backup Xen domU machines
  4. Backup of Xen servers and laptops with encryption
  5. Restore xen image deleted with xen-delete-image

Leave a comment