qemu-backup - backing up live qemu images via rsync.
$Revision: 790 $
qemu-backup.sh <server> <imagefile.qcow2>
oherscriptname.sh <server> <imagefile.qcow2>
server
server name where we can ssh to as root
imagefile.qcow2
path to qcow2 image file
This script nbd's the imagefile, detects the partitions, lvms and luks devices, finds the root partition, mounts all the stuff and finally rsyncs the server to the mountpoint. If the script is called other than "qemu-backup.sh", it skips the rsync part and waits for a key pressed. Useful if you simply want your image mounted. Please adapt the script for your needs (e.g. where to look for the luks keys).