aboutsummaryrefslogtreecommitdiff
path: root/tw/home/frm.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tw/home/frm.scm')
-rw-r--r--tw/home/frm.scm22
1 files changed, 22 insertions, 0 deletions
diff --git a/tw/home/frm.scm b/tw/home/frm.scm
index 56358802..03d07830 100644
--- a/tw/home/frm.scm
+++ b/tw/home/frm.scm
@@ -114,6 +114,28 @@
(default-key "53EC3C06856883DD92355BC22FC78504681F69B0")
(gui-pinentry? #t)))
+ (service home-restic-backup-service-type
+ (list (restic-scheduled-backup
+ (schedule #~"0 */2 * * *")
+ (paths '(;; important user data
+ "~/src"
+ "~/.local/share/zsh/history"
+ ;; secrets
+ "~/.local/share/ssh-keys"
+ "~/.local/share/gnupg"
+ "~/.config/cern-ca-bundle.crt"
+ "~/.config/grid-personal-cert.pem"
+ "~/.config/grid-personal-key.pem"
+ "~/.config/syncthing"))
+ (repo (restic-vin.wg-repo "timo/framework"))
+ (password (restic-pass-key "computers/vin/restic-repos/timo-framework")))
+
+ (restic-scheduled-backup
+ (schedule #~"30 */2 * * *") ; try to avoid lock contention
+ (paths '("~/documents" "~/sync" "~/pictures"))
+ (repo (restic-vin.wg-repo "timo/sync"))
+ (password (restic-pass-key "computers/vin/restic-repos/timo-sync")))))
+
(append (interactive-services) %pim-services %common-services)))))
%frm-home