diff options
author | Timo Wilken | 2023-09-08 23:23:56 +0200 |
---|---|---|
committer | Timo Wilken | 2023-09-08 23:23:56 +0200 |
commit | 84f2e3c33538587129c8b3d9898ef1625ccd557b (patch) | |
tree | 2072d89959b59ac9c97b5e89f673479fe17a5a95 /tw/home/lap.scm | |
parent | 4b62f0915ead6a81917ca26578415ce7b9ef9336 (diff) |
Back up Syncthing data separately
This should allow sharing the underlying data with backups from
fp4.twilken.net.
Diffstat (limited to 'tw/home/lap.scm')
-rw-r--r-- | tw/home/lap.scm | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/tw/home/lap.scm b/tw/home/lap.scm index e5149e5d..e0f23c70 100644 --- a/tw/home/lap.scm +++ b/tw/home/lap.scm @@ -116,18 +116,11 @@ (home-batsignal-configuration (batteries '("BAT0")))) - (simple-service 'restic-environment home-environment-variables-service-type - ;; This variable is useful in interactive shells. - ;; See also the restic alias in zshrc. - `(("RESTIC_PASSWORD_COMMAND" . "pass computers/vin/restic-repos/laptop"))) - (service home-restic-backup-service-type (list (restic-backup-repository (schedule #~"0 */2 * * *") (paths '(;; important user data - "~/audiobooks" "~/documents" - "~/pictures" "~/src" "~/.local/share/zsh/history" ;; secrets @@ -136,6 +129,7 @@ "~/.config/cern-ca-bundle.crt" "~/.config/grid-personal-cert.pem" "~/.config/grid-personal-key.pem" + "~/.config/syncthing" ;; games "~/savegames" "~/.config/simutrans" @@ -145,7 +139,18 @@ "~/.local/share/guix-sandbox-home/.local/share/Colossal Order/Cities_Skylines" "~/.local/share/guix-sandbox-home/.local/share/Surviving Mars")) (url-command "echo \"rest:http://timo:$(pass computers/vin/restic-server/timo | head -1)@vin.wg:8181/timo/laptop\"") - (password-command "pass computers/vin/restic-repos/laptop")))) + (password-command "pass computers/vin/restic-repos/laptop")) + + (restic-backup-repository + (schedule #~"10 */2 * * *") + (paths '("~/audiobooks" + "~/music" + "~/pictures" + "~/sync" + "~/videos/youtube/.yt-dlp" + "~/videos/youtube/.config")) + (url-command "echo \"rest:http://timo:$(pass computers/vin/restic-server/timo | head -1)@vin.wg:8181/timo/sync\"") + (password-command "pass computers/vin/restic-repos/sync")))) ;; Redshift: make the screen turn redder at night. (service home-redshift-service-type |