diff options
author | Timo Wilken | 2023-05-20 13:33:18 +0200 |
---|---|---|
committer | Timo Wilken | 2023-05-20 14:48:55 +0200 |
commit | e1ac041de9a4660739cda323ef867c5d1d69ae1a (patch) | |
tree | 670b85971852e912a70521cc7920e96b7c762f08 /tw/system | |
parent | 3c2ee5e5383e4deac893489b4920297f4a4cb7b6 (diff) |
Add restic cleanup service
Diffstat (limited to 'tw/system')
-rw-r--r-- | tw/system/vin.scm | 10 |
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). |