Set up live backups for all VMs #433

Merged
greg merged 21 commits from feature/qemu_snapshots into master 2022-10-22 11:52:27 +00:00
Showing only changes of commit 82f50b0caa - Show all commits

View File

@ -21,7 +21,7 @@ virsh snapshot-create-as --domain $1 \
borg create -v --stats \
$REPOSITORY::$1_$(date +%F_%H-%M) \
/var/lib/libvirt/images/$1.qcow2 \
/root/backups/vm_meta
/root/backups/vm_meta/$1.xml
echo "Pivoting base image back to original"
virsh blockcommit $1 vda --pivot --base=/var/lib/libvirt/images/$1.qcow2