Create directories for KVM host backup files

This commit is contained in:
Râu Cao 2022-10-19 12:23:54 +02:00
parent 2e2ebbcc02
commit 6c8f9055c1
Signed by: raucao
GPG Key ID: 15E65F399D084BA9
1 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,14 @@ export BORG_REPO='#{borg_credentials["repository"]}'
not_if "grep -q BORG /root/.bashrc"
end
directory "/root/backups" do
mode "0750"
end
directory "/root/backups/vm_meta" do
mode "0750"
end
cookbook_file "/root/backups/backup_vm.sh" do
source "backup_vm.sh"
mode "0750"