summaryrefslogtreecommitdiffstats
path: root/scripts/sh/restic/cleanup.sh
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2022-03-06 04:32:32 +0100
committerGeorg Pfuetzenreuter2022-03-06 04:32:32 +0100
commitfcc428cdc23cf5cd1f69140008771592348fedb2 (patch)
tree19603da72fe562fb7ce251b1540d30f8a93a125e /scripts/sh/restic/cleanup.sh
parent7e55910b27e877574e518fa1febc32405b129171 (diff)
downloadsystem-fcc428cdc23cf5cd1f69140008771592348fedb2.tar.gz
system-fcc428cdc23cf5cd1f69140008771592348fedb2.tar.bz2
system-fcc428cdc23cf5cd1f69140008771592348fedb2.zip
Updating backup scripts
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'scripts/sh/restic/cleanup.sh')
-rw-r--r--scripts/sh/restic/cleanup.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/sh/restic/cleanup.sh b/scripts/sh/restic/cleanup.sh
new file mode 100644
index 0000000..ccfe9c2
--- /dev/null
+++ b/scripts/sh/restic/cleanup.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+. restic_env
+/usr/bin/restic forget --group-by hosts,paths --keep-daily 90 --prune --cleanup-cache -v