<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div></div><div>problem:  blockcommit only works if the guest is running.<br><br><div>what we want:  reliable and automated backups.  a fair selection of old versions.<div><br></div><div>backuppc seems pretty good.  but it begs the question of how best to backup qcow2 files.</div><div><br></div><div>currently i'm using:<div><font size="1"><span style="color:rgb(56,118,29)">virsh snapshot-create-as <guest> <snap> --atomic --no-metadata --disk-only --diskspec=<diskspec-from-</span></font><font size="1"><span style="color:rgb(56,118,29)">virsh-domblklist></span></font></div><div><font size="1"><span style="color:rgb(56,118,29)">mkdir -p /mnt/point</span></font></div><div><font size="1"><span style="color:rgb(56,118,29)">guestmount -iroallow_root -a<guest.qcow2> /mnt/point</span></font></div><div><font size="1"><span style="color:rgb(56,118,29)">rsync... (backuppc)<br></span></font></div><div><font size="1"><span style="color:rgb(56,118,29)">guestunmount /mnt/point</span></font></div><div><font size="1"><span style="color:rgb(56,118,29)">virsh blockcommit <guest> <guest.snap> --active --pivot --delete</span></font></div></div></div><div><br></div><div>but blockcommit only works if the guest is running.</div><div><br></div><div>is there an approach that works, whether the guest is running, stopped, or stops or starts during the backup?</div></div><div><br></div><div><div>methods i'm not considering:</div><div>just copy the qcow2 files.</div><div>copy files out from inside a running vm.</div><div>stop the vm and then copy files.</div><div><br></div><div><div><div dir="ltr">"QCOW2 backing files & overlays"</div><div dir="ltr" class="gmail_attr">(<a href="https://kashyapc.fedorapeople.org/virt/lc-2012/snapshots-handout.html" target="_blank">https://kashyapc.fedorapeople.org/virt/lc-2012/snapshots-handout.html</a>)<br>...discusses
 internal snapshots, which to me raises the question, how might i mount 
(or guestmount) an internal snapshot so i can copy files out of it?</div></div></div></div></div></div>
</div><br clear="all">anyone here know a good answer, or a better place to ask?</div>