Browse Source

Merge branch 'wip-hypervisor' into 'master'

hypervisor: reduce retention of backups to 4 months

See merge request main/infrastructure!513
master
Loïc Dachary 2 months ago
parent
commit
2d5c728552
  1. 2
      playbooks/libvirt-hypervisor/templates/enough-upload.j2

2
playbooks/libvirt-hypervisor/templates/enough-upload.j2

@ -3,7 +3,7 @@
echo --------------------------
date
days=${1:-240}
days=${1:-120}
volumes="-v /run/libvirt/libvirt-sock:/run/libvirt/libvirt-sock -v /var/lib/libvirt/images/enough:/var/lib/libvirt/images/enough -v /var/lib/libvirt/images/enough:/var/lib/libvirt/images/enough -v $HOME/.enough:/root/.enough"
docker run $volumes --rm enoughcommunity/enough:latest --domain {{ domain }} backup create --driver libvirt
docker run $volumes --rm enoughcommunity/enough:latest --domain {{ domain }} backup prune --driver libvirt $days

Loading…
Cancel
Save