From 2d6735e0fb10aaf99a80287aac7bc118a99a40b5 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Wed, 8 Apr 2020 15:44:45 -0400 Subject: [PATCH] change tarball filename --- vmbackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmbackup.sh b/vmbackup.sh index e5abed6..3eade15 100644 --- a/vmbackup.sh +++ b/vmbackup.sh @@ -18,7 +18,7 @@ for vm in $(virsh list --all --name); do DEVPATH=$(virsh domblklist $vm | grep -i vda | awk '{print $2}') virsh dumpxml --security-info $vm > $XMLPATH/${vm}_${DATE}.xml virsh snapshot-create-as --domain $vm ${vm}_temp_$DATE --diskspec vda,file=$SNAP_PATH/${vm}_temp_$DATE.qcow2 --disk-only --quiesce --atomic --no-metadata - tar czvf $SNAP_PATH/${vm}_$DATE.qcow2.tar.gz $DEVPATH + tar czvf $SNAP_PATH/${vm}_$DATE.tar.gz $DEVPATH virsh blockcommit $vm vda --active --verbose --pivot rm -f $SNAP_PATH/${vm}_temp_$DATE.qcow2 done