summaryrefslogtreecommitdiff
path: root/.local/bin/backup-prune
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/backup-prune')
-rwxr-xr-x.local/bin/backup-prune6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/backup-prune b/.local/bin/backup-prune
new file mode 100755
index 0000000..78f5402
--- /dev/null
+++ b/.local/bin/backup-prune
@@ -0,0 +1,6 @@
+#!/bin/zsh
+
+source $HOME/.config/borg/.env-backup
+
+borg -v prune --keep-daily=7 --keep-weekly=4 --keep-monthly=12 ::
+borg -v compact ::