aboutsummaryrefslogtreecommitdiff
path: root/forget
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-03-21 10:29:56 +0100
committerlonkaars <loek@pipeframe.xyz>2022-03-21 10:29:56 +0100
commit2224bfa7af546bcf41f7d4a2f91d603f1eb96f76 (patch)
tree8aaa331b4550b9f3f19050377b8b634a829def2d /forget
initial commitHEADmaster
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
+