Prune VM backups after every run

closes #439
This commit is contained in:
Râu Cao
2022-11-05 13:05:02 +01:00
parent 9c0764a2eb
commit 86de82a0e5
3 changed files with 19 additions and 0 deletions

View File

@@ -8,4 +8,7 @@ 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