summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.