aboutsummaryrefslogtreecommitdiff
path: root/tw/system/vin.scm
diff options
context:
space:
mode:
authorTimo Wilken2023-05-20 13:33:18 +0200
committerTimo Wilken2023-05-20 14:48:55 +0200
commite1ac041de9a4660739cda323ef867c5d1d69ae1a (patch)
tree670b85971852e912a70521cc7920e96b7c762f08 /tw/system/vin.scm
parent3c2ee5e5383e4deac893489b4920297f4a4cb7b6 (diff)
Add restic cleanup service
Diffstat (limited to 'tw/system/vin.scm')
-rw-r--r--tw/system/vin.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/tw/system/vin.scm b/tw/system/vin.scm
index 9c467a54..3076fd8f 100644
--- a/tw/system/vin.scm
+++ b/tw/system/vin.scm
@@ -53,6 +53,16 @@
(prometheus? #t)
(prometheus-auth? #f)))
+ (service restic-cleanup-service-type
+ (list (restic-cleanup-repository
+ ;; Laptop backups run at "0 */2 * * *".
+ (schedule #~"10 5 * * *") ; daily at 05:10
+ (url "/var/backups/restic/timo/laptop")
+ (password-file "/etc/restic/timo-laptop")
+ (keep-within "14d")
+ (keep-weekly 52)
+ (keep-monthly -1))))
+
(server-base-services host-name)))
;; The list of user accounts ('root' is implicit).