On Mon, Mar 15, 2021 at 7:19 PM gregrwm <p...@whitleymott.net> wrote:
> problem: blockcommit only works if the guest is running. > > so, not a problem with backuppc, but a problem with how to use it. > > currently i'm using: > DumpPreShareCmd: > virsh snapshot-create-as <guest> <snap> --atomic --no-metadata --disk-only > --diskspec=<diskspec-from-virsh-domblklist> > mkdir -p /mnt/point > guestmount -iroallow_root -a<guest.qcow2> /mnt/point > > DumpPostShareCmd: > guestunmount /mnt/point > virsh blockcommit <guest> <guest.snap> --active --pivot --delete > > but blockcommit only works if the guest is running. > > is there an approach that works, whether the guest is running, stopped, or > stops or starts during the backup? > methods i'm not considering: just copy the qcow2 files. copy files out from inside a running vm. stop the vm and then copy files. "QCOW2 backing files & overlays" (https://kashyapc.fedorapeople.org/virt/lc-2012/snapshots-handout.html) ...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?
_______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/