aboutsummaryrefslogtreecommitdiff
path: root/forget
diff options
context:
space:
mode:
Diffstat (limited to 'forget')
-rwxr-xr-xforget5
1 files changed, 5 insertions, 0 deletions
diff --git a/forget b/forget
new file mode 100755
index 0000000..6049301
--- /dev/null
+++ b/forget
@@ -0,0 +1,5 @@
+#!/bin/bash
+cd $(dirname $0)
+source ./env
+restic forget --prune --tag "$(basename $1)" --keep-last 2 --group-by tags
+