Backup script helper for libvirt based VM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daniel Berteaud 22447576c9 Fix lockdir not taking the value of backupdir 2 months ago
.tito Automatic commit of package [virt-backup] release [0.2.28-1]. 9 months ago
COPYING Spec and licensing cleanup, by Richard Shaw 9 months ago
README Add an exclusive lock to be sure we correctly count the number of running backups 3 years ago
virt-backup Fix lockdir not taking the value of backupdir 2 months ago
virt-backup.spec Automatic commit of package [virt-backup] release [0.2.28-1]. 9 months ago

README

This script allows you to backup Virtual Machines managed by libvirt.
It has only be tested with KVM based VM
This script will dump (or mount as a set of chunks):
* each block devices
* optionnally the memory (if --state flag is given)
* the XML description of the VM

These files are writen in a temporary backup dir. Everything is done
in order to minimize donwtime of the guest. For example, it takes
a snapshot of the block devices (if backed with LVM) so the guest is
just paused for a couple of seconds. Once this is done, the guest is
resumed, and the script starts to dump the snapshot.

Once a backup is finished, you'll have several files in the backup
directory. Let's take an example with a VM called my_vm which has
two virtual disks: hda and hdb. You have passed the --state flag:
* my_vm.lock: lock file to prevent another backup to run at the same time
* my_vm.xml: this file is the XML description of the VM (for libvirt configuraiton)
* my_vm_hda.img: this file is an image of the hda drive of the gu