Only back up domain-specific XML per archive
This commit is contained in:
parent
6c8f9055c1
commit
82f50b0caa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue