Skip to content

Commit

Permalink
add a script to prune
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Sep 16, 2021
1 parent e87dfae commit 619e181
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions prune-backups.sh
@@ -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 "$@"

0 comments on commit 619e181

Please sign in to comment.