From e1ac041de9a4660739cda323ef867c5d1d69ae1a Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Sat, 20 May 2023 13:33:18 +0200 Subject: Add restic cleanup service --- tw/system/vin.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tw/system') 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). -- cgit v1.2.3