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/lap.scm | |
parent | 1d478adf702367597e51ae897b7542098bd6fa8c (diff) |
Back up user data on new machines
Diffstat (limited to 'tw/home/lap.scm')
-rw-r--r-- | tw/home/lap.scm | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/tw/home/lap.scm b/tw/home/lap.scm index d271e268..1a5fb535 100644 --- a/tw/home/lap.scm +++ b/tw/home/lap.scm @@ -40,17 +40,6 @@ #:use-module (tw services restic) #:use-module (tw theme)) -(define (restic-pass-key key) - (restic-password-source (type 'pass) (name key))) - -(define (restic-vin.wg-repo path) - (restic-rest-repository - (username "timo") - (password (restic-pass-key "computers/vin/restic-server/timo")) - (hostname "vin.wg") - (port 8181) - (path path))) - (define-public %lap-home (home-environment (packages @@ -87,7 +76,6 @@ (list (restic-scheduled-backup (schedule #~"0 */2 * * *") (paths '(;; important user data - "~/documents" "~/src" "~/.local/share/zsh/history" ;; secrets @@ -111,11 +99,12 @@ (password (restic-pass-key "computers/vin/restic-repos/timo-laptop"))) (restic-scheduled-backup - (schedule #~"10 */2 * * *") - (paths '("~/audiobooks" + (schedule #~"10 */2 * * *") ; try to avoid lock contention + (paths '("~/documents" + "~/sync" + "~/audiobooks" "~/music" "~/pictures" - "~/sync" "~/videos/youtube/.yt-dlp" "~/videos/youtube/.config")) (repo (restic-vin.wg-repo "timo/sync")) |