aboutsummaryrefslogtreecommitdiff
path: root/tw
diff options
context:
space:
mode:
authorTimo Wilken2023-09-08 23:26:27 +0200
committerTimo Wilken2023-09-08 23:26:27 +0200
commitf88e7b9ed70ecf09b42facd829a26ccb713dbd29 (patch)
tree4163e0a01ef0eb7ac8b592d75be5af1cd1785c3f /tw
parent68ef5a3292122b1c5f3cbf1cfabac6564aae0882 (diff)
Clean up new "sync" restic repo
Diffstat (limited to 'tw')
-rw-r--r--tw/system/vin.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/tw/system/vin.scm b/tw/system/vin.scm
index 5d406376..4f95ee4d 100644
--- a/tw/system/vin.scm
+++ b/tw/system/vin.scm
@@ -74,6 +74,14 @@
(keep-weekly 52)
(keep-monthly -1))
+ (restic-cleanup-repository
+ (schedule #~"0 5 * * *")
+ (url "/var/backups/restic/timo/sync")
+ (password-file "/etc/restic/timo-sync")
+ (keep-within "14d")
+ (keep-weekly 52)
+ (keep-monthly -1))
+
;; Phone backups run with a new version of restic, which creates
;; v2 repos by default. Guix' older restic version can't read
;; these, so create the repo on the server before pushing to it.