11
site-cookbooks/kosmos_kvm/files/prune_vm_backups.sh
Normal file
11
site-cookbooks/kosmos_kvm/files/prune_vm_backups.sh
Normal 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
|
||||
Reference in New Issue
Block a user