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

@@ -0,0 +1,11 @@
#!/bin/bash
# GENERATED BY CHEF
# DO NOT EDIT
set -e
echo "Pruning backups of VM: $1"
borg prune --prefix $1 \
--keep-hourly 24 --keep-daily 1 --keep-weekly 1 \
--keep-monthly 1 --keep-yearly 1 \
--stats $BORG_REPO