Browse Source

hypervisor: reduce retention of backups to 4 months

Otherwise it's too costly
keep-around/bd7e875363179d1ac80961a718580bde5ad155a1
Loïc Dachary 2 months ago
parent
commit
bd7e875363
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  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