summaryrefslogtreecommitdiff
path: root/pruner.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pruner.sh')
-rwxr-xr-xpruner.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/pruner.sh b/pruner.sh
new file mode 100755
index 0000000..7b86d23
--- /dev/null
+++ b/pruner.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/bash
+function Pruner {
+ echo 'Hello' $1 There are $# arguments
+ if [ $# -eq 1 ]; then
+ borg prune \
+ --prefix $1 \
+ --list \
+ --dry-run \
+ --keep-within 1d \
+ --keep-daily 2 \
+ --keep-weekly 8 \
+ --keep-monthly 12 \
+ --keep-yearly -1 \
+ ::
+ else
+ # sds
+ echo Pruner went wrong.
+ fi
+}
+
+
+Pruner $1