diff options
author | Timo Wilken | 2024-02-16 20:27:04 +0100 |
---|---|---|
committer | Timo Wilken | 2024-02-16 20:27:25 +0100 |
commit | b2e40e5e0d7b02c62764a53b8e52f2c98c5379b1 (patch) | |
tree | 4ca5f81f96b934283318972c2f2ef85e0e35709d /tw/home/btl.scm | |
parent | 1d478adf702367597e51ae897b7542098bd6fa8c (diff) |
Back up user data on new machines
Diffstat (limited to 'tw/home/btl.scm')
-rw-r--r-- | tw/home/btl.scm | 36 |
1 files changed, 36 insertions, 0 deletions
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 |