add a script to prune

main
Brian Hicks 2021-09-16 14:42:44 -05:00
parent e87dfae2d4
commit 619e181fa5
1 changed files with 12 additions and 0 deletions

12
prune-backups.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail
REPO="${1:-}"
if test -z "$REPO"; then
echo "USAGE: ${0:-} some.remote-name.com:repo"
echo "You can also add additional arguments, e.g. --rsh"
exit 1
fi
exec borg prune -d 7 -w 4 -m 60 -y 10 "$@"