From d881bdf9a8a4d2d698e2fdf8bd5580d609c69132 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Wed, 21 Feb 2024 22:42:57 +0100 Subject: [PATCH] feat(storage01): Create some backups --- machines/storage01/forgejo.nix | 8 ++++++++ machines/storage01/netbird/default.nix | 2 +- machines/storage01/secrets/bupstash-put_key | Bin 0 -> 2319 bytes machines/storage01/secrets/secrets.nix | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 machines/storage01/secrets/bupstash-put_key diff --git a/machines/storage01/forgejo.nix b/machines/storage01/forgejo.nix index a3c2ef1..9092f65 100644 --- a/machines/storage01/forgejo.nix +++ b/machines/storage01/forgejo.nix @@ -87,4 +87,12 @@ in age-secrets.matches."^forgejo-.*$" = { owner = "git"; }; + + dgn-backups.jobs.forgejo.settings.paths = builtins.map (dir: "/var/lib/git/${dir}") [ + "custom" + "data" + "repositories" + ".ssh" + ]; + dgn-backups.postgresDatabases = [ "git" ]; } diff --git a/machines/storage01/netbird/default.nix b/machines/storage01/netbird/default.nix index 7291c67..178d4ef 100644 --- a/machines/storage01/netbird/default.nix +++ b/machines/storage01/netbird/default.nix @@ -43,5 +43,5 @@ in }; }; - # age-secrets.autoMatch = [ "netbird" ]; + dgn-backups.jobs.netbird.settings.paths = [ "/var/lib/netbird-mgmt" ]; } diff --git a/machines/storage01/secrets/bupstash-put_key b/machines/storage01/secrets/bupstash-put_key new file mode 100644 index 0000000000000000000000000000000000000000..bb8369aaf1eaac23f6669a66615a9de154bd25c5 GIT binary patch literal 2319 zcmZY9>9^Aa8V2y;$Rb67>oTKwfXYD>!o5kFwrNz5q+8l_Pr9Vs0h%;v(mhF=E{G_b zhzN)*4&s8Mh;Y5k0U1EqhLHnzW*lGu*+n+-h%6oy6~W;PUzk7OJ-_ol=Y8H(Mraj^ zyxJ&Np)DSpmL@!`BzEfs?$wu0xpAYwBFqlI!x$$LOm zr8txi>X55WnJRFrQ!3-tlGCYFwCOD2#p=1bz z?$lJENP%G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A@xBFV+`vwl0 zL2TYRzi&uI<PwCtK`4xv;K%t7l9;5Ze7v_k%rV?prcB+;+ILk^A}GKda-< zo4nV`wR4A8MAu%aE!%tM>sVi-y)gKNosmnteb9@_FT*w;LEiZ>bniPS{?pk$wkv11 zCp>>kW73|-v75q=pT?8V&fJ?leC*i7;F-7A%)79@{mY9xy0(ZzecYg>sAJCQ0Z;o* zdfHEPU*zriaLdQW=Xa+cIXmh;>HLsyKJWj`b@lyDr6X|q)RXNmMmO}?wc_Ek!-hwP ye;|H?DwPYLj>0!NwrZ>28{3mR_raOY-o0xhhW_`cy!DC5rF+P2+*jZO?Ee681cn3v literal 0 HcmV?d00001 diff --git a/machines/storage01/secrets/secrets.nix b/machines/storage01/secrets/secrets.nix index 52bbbbc..50b743a 100644 --- a/machines/storage01/secrets/secrets.nix +++ b/machines/storage01/secrets/secrets.nix @@ -4,6 +4,7 @@ let in lib.setDefault { inherit publicKeys; } [ "atticd-credentials_file" + "bupstash-put_key" "forgejo-mailer_password_file" "forgejo_runners-token_file" "garage-environment_file"