Don't exit VM backup scripts immediately on failures
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
#!/bin/bash
|
||||
# GENERATED BY CHEF
|
||||
# DO NOT EDIT
|
||||
set -e
|
||||
|
||||
echo "Backing up all VMs with kvm_guest chef role..."
|
||||
|
||||
for domain in <%= @vm_domains.join(" ") %>
|
||||
do
|
||||
/root/backups/backup_vm.sh $domain
|
||||
/root/backups/prune_vm_backups.sh $domain
|
||||
/root/backups/backup_vm.sh $domain && /root/backups/prune_vm_backups.sh $domain
|
||||
# TODO Enable this when upgrading borg to 1.2
|
||||
# borg compact $BORG_REPO
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user