From 9a8f27f3d426a0ce5367a8f406788fecf10362be Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 25 Oct 2019 09:54:38 +0200 Subject: [PATCH] backup finance folder --- configs/porani/syncthing.nix | 3 ++- configs/workhorse/syncthing.nix | 2 ++ system/desktop/restic.nix | 4 +--- system/server/default.nix | 1 + system/server/restic.nix | 9 +++++++++ 5 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 system/server/restic.nix diff --git a/configs/porani/syncthing.nix b/configs/porani/syncthing.nix index 86a9026..31b6899 100644 --- a/configs/porani/syncthing.nix +++ b/configs/porani/syncthing.nix @@ -41,6 +41,7 @@ users.groups."syncthing".members = [ "mpd" "syncthing" "kodi" "palo" ]; - + backup.all.restic.dirs = ["/var/lib/syncthing/finance"]; } + diff --git a/configs/workhorse/syncthing.nix b/configs/workhorse/syncthing.nix index c545af3..188cf5c 100644 --- a/configs/workhorse/syncthing.nix +++ b/configs/workhorse/syncthing.nix @@ -50,4 +50,6 @@ after = [ "media.mount" ]; }; + backup.all.restic.dirs = ["/home/syncthing/finance"]; + } diff --git a/system/desktop/restic.nix b/system/desktop/restic.nix index 547efbe..208ede9 100644 --- a/system/desktop/restic.nix +++ b/system/desktop/restic.nix @@ -1,14 +1,12 @@ { backup.services.restic = { - "on-porani".enable = false; + "on-porani".enable = true; "on-workhorse".enable = true; "on-workout".enable = true; }; backup.all.restic.dirs = [ - "/home/palo/.gnupg" - "/home/palo/.ssh" "/home/palo/.password-store" ]; diff --git a/system/server/default.nix b/system/server/default.nix index 851318e..cab1f9e 100644 --- a/system/server/default.nix +++ b/system/server/default.nix @@ -7,6 +7,7 @@ ./initssh.nix ./graylog-exporter.nix ./prometheus-exporters.nix + ./restic.nix ]; # make sure laptops stay awake when closing the montior diff --git a/system/server/restic.nix b/system/server/restic.nix new file mode 100644 index 0000000..243c462 --- /dev/null +++ b/system/server/restic.nix @@ -0,0 +1,9 @@ +{ + + backup.services.restic = { + "on-porani".enable = true; + "on-workhorse".enable = true; + "on-workout".enable = true; + }; + +}