On 2013-09-20 15:41, Davide Guerri wrote:> Hi Thomas,Hello Davide.> I'm using this script which leverages external snapshots and > blockpull: https://github.com/dguerri/LibVirtKvm-scriptsYeah. I saw that and tried this already. But it needs to be adjusted to libvirtd-1.1.2 i think. Can you do this? I fiddled a litte bit around but wasn't realy successfull. hn LibVirtKvm-scripts # ./fi-backup.sh -b /opt/virt-backup-local/ -d serve.lordcritical [DEB] qemu-img version '1.6.0' is supported [DEB] KVM version '1.6.0,' is supported [DEB] Snapshot for domain 'serve.lordcritical' requested [DEB] Using timestamp '20130920-151742' [DEB] Snapshotting block devices for 'serve.lordcritical' using suffix 'bimg-20130920-151742' [VER] Snapshot for block devices of 'serve.lordcritical' successful [ERR] Error getting backing file for '/var/lib/libvirt/images/serve.lordcritical.bimg-20130920-151742'. At the moment i try: https://bitbucket.org/guilhemfr/virt-back cheers t.> It's very simple and on ubuntu requires some tweaks on apparmour > configuration. > > Hth > > Cheers, > Davide > > -- > > Davide Guerri > http://about.me/davide_guerri > >> On 20 Sep 2013, at 15:31, Thomas Stein <himbeere@meine-oma.de> wrote: >> >> Hello. >> >> Is someone performing incremental backups via libvirt for qemu/kvm >> machines? I'm still having a hard time to >> find a nice procedure. I mean is it possible to make a full backup of >> an image on monday a do the next days of the week >> incremental backups? >> >> Another way could be mount the image and rsync its contents. Does that >> makes sense? >> >> Also i read in qemu changelog: >> >> --- >> Support for a new block device background job. Started by >> drive-backup, it will backup a disk's content to a new file. Unlike >> drive-mirror, the new file will include the source disk's content at >> the time the backup job was started. Atomic backup of multiple disks >> is supported using the "transaction" QMP command. >> --- >> >> Is this supported by libvirt? >> >> thanks and best regards >> thomas >> >> _______________________________________________ >> libvirt-users mailing list >> libvirt-users@redhat.com >> https://www.redhat.com/mailman/listinfo/libvirt-users
Hi> hn LibVirtKvm-scripts # ./fi-backup.sh -b /opt/virt-backup-local/ -d serve.lordcritical > [DEB] qemu-img version '1.6.0' is supported > [DEB] KVM version '1.6.0,' is supported > [DEB] Snapshot for domain 'serve.lordcritical' requested > [DEB] Using timestamp '20130920-151742' > [DEB] Snapshotting block devices for 'serve.lordcritical' using suffix 'bimg-20130920-151742' > [VER] Snapshot for block devices of 'serve.lordcritical' successful > [ERR] Error getting backing file for '/var/lib/libvirt/images/serve.lordcritical.bimg-20130920-151742'.Will you please send me the output of the following? qemu-img info /var/lib/libvirt/images/serve.lordcritical.bimg-20130920-151742 Thanks!> At the moment i try: > > https://bitbucket.org/guilhemfr/virt-backSeems very interesting and promising. I will try it! Cheers, D.
On 2013-09-20 16:05, Davide Guerri wrote:> Hi > >> hn LibVirtKvm-scripts # ./fi-backup.sh -b /opt/virt-backup-local/ -d >> serve.lordcritical >> [DEB] qemu-img version '1.6.0' is supported >> [DEB] KVM version '1.6.0,' is supported >> [DEB] Snapshot for domain 'serve.lordcritical' requested >> [DEB] Using timestamp '20130920-151742' >> [DEB] Snapshotting block devices for 'serve.lordcritical' using suffix >> 'bimg-20130920-151742' >> [VER] Snapshot for block devices of 'serve.lordcritical' successful >> [ERR] Error getting backing file for >> '/var/lib/libvirt/images/serve.lordcritical.bimg-20130920-151742'. > > Will you please send me the output of the following? > > qemu-img info > /var/lib/libvirt/images/serve.lordcritical.bimg-20130920-151742Looks okay actually. hn LibVirtKvm-scripts # ./fi-backup.sh -b /opt/virt-backup-blockcopy/ serve.lordcritical [ERR] Error getting backing file for '/var/lib/libvirt/images/serve.lordcritical.bimg-20130920-170511'. hn LibVirtKvm-scripts # qemu-img info /var/lib/libvirt/images/serve.lordcritical.bimg-20130920-170511 image: /var/lib/libvirt/images/serve.lordcritical.bimg-20130920-170511 file format: qcow2 virtual size: 40G (42949672960 bytes) disk size: 196K cluster_size: 65536 backing file: /var/lib/libvirt/images/serve.lordcritical.bimg-20130920-170121 backing file format: qcow2 hn LibVirtKvm-scripts # cheers t.> Thanks! > >> At the moment i try: >> >> https://bitbucket.org/guilhemfr/virt-back > > Seems very interesting and promising. I will try it! > > Cheers, > D.