chef/site-cookbooks/kosmos_kvm/templates/backup_all_vms.sh.erb

13 lines
311 B
Plaintext

#!/bin/bash
# GENERATED BY CHEF
# DO NOT EDIT
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
# TODO Enable this when upgrading borg to 1.2
# borg compact $BORG_REPO
done