From b2e40e5e0d7b02c62764a53b8e52f2c98c5379b1 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Fri, 16 Feb 2024 20:27:04 +0100 Subject: Back up user data on new machines --- tw/home/btl.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'tw/home/btl.scm') diff --git a/tw/home/btl.scm b/tw/home/btl.scm index 22053bfe..fe476ad9 100644 --- a/tw/home/btl.scm +++ b/tw/home/btl.scm @@ -107,6 +107,42 @@ (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" + ;; games + "~/savegames" + "~/.config/simutrans" + "~/.local/share/0ad" + "~/.local/share/warzone2100" + "~/.local/share/widelands" + "~/.local/share/ksp-overlay/upper" + "~/.pioneer")) + (repo (restic-vin.wg-repo "timo/battleship")) + (password (restic-pass-key "computers/vin/restic-repos/timo-battleship"))) + + (restic-scheduled-backup + (schedule #~"20 */2 * * *") ; try to avoid lock contention + (paths '("~/documents" + "~/sync" + "~/audiobooks" + "~/music" + "~/pictures" + "~/videos/youtube/.yt-dlp" + "~/videos/youtube/.config")) + (repo (restic-vin.wg-repo "timo/sync")) + (password (restic-pass-key "computers/vin/restic-repos/timo-sync"))))) + (append (interactive-services) %pim-services %common-services))))) %btl-home -- cgit v1.2.3