Only back up domain-specific XML per archive

This commit is contained in:
Râu Cao 2022-10-19 12:24:10 +02:00
parent 6c8f9055c1
commit 82f50b0caa
Signed by: raucao
GPG Key ID: 15E65F399D084BA9
1 changed files with 1 additions and 1 deletions

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