WIP Add KVM host backup recipe

Add a recipe that configures scripts for live backups of VM images via
libvirt and borg.
This commit is contained in:
Râu Cao
2022-10-18 18:45:17 +02:00
parent 6d50a32aca
commit a3844b7ef6
3 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/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
done