chef/site-cookbooks/kosmos_kvm/files/prune_vm_backups.sh
2022-11-05 13:43:02 +01:00

12 lines
250 B
Bash

#!/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