qemu-backup

a script for backing up live qemu images via rsync and nbd

 

Download

Feedback

Documentation

NAME

qemu-backup - backing up live qemu images via rsync.

VERSION

$Revision: 790 $

SYNOPSIS

qemu-backup.sh <server> <imagefile.qcow2>
oherscriptname.sh <server> <imagefile.qcow2>

OPTIONS

  • server

    server name where we can ssh to as root

  • imagefile.qcow2

    path to qcow2 image file

DESCRIPTION

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).