Don't exit VM backup scripts immediately on failures
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
# GENERATED BY CHEF
|
||||
# DO NOT EDIT
|
||||
set -e
|
||||
|
||||
REPOSITORY=$BORG_REPO
|
||||
|
||||
@@ -18,6 +17,7 @@ virsh snapshot-create-as --domain $1 \
|
||||
--disk-only \
|
||||
--diskspec vda,snapshot=external
|
||||
|
||||
# TODO report failures
|
||||
borg create -v $REPOSITORY::$1_$(date +%F_%H-%M) \
|
||||
/var/lib/libvirt/images/$1.qcow2 \
|
||||
/root/backups/vm_meta/$1.xml
|
||||
|
||||
Reference in New Issue
Block a user