about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-08-01T16·41+0100
committertazjin <mail@tazj.in>2020-08-01T16·52+0000
commit717d12f2f33738898c57564bc815e3984e7f1b78 (patch)
tree21e20e20712cf5beaf80bd7c97ee421ba7dde51e /ops
parentf7d5d5c5421718a7f3a60bec0a930ac48494d480 (diff)
feat(whitby): Enable daily PostgreSQL backups r/1523
... daily is just the default cron pattern for this, but we might also
want this to happen more frequently. Not sure yet.

Change-Id: I4e433fefebd93488891e765b5842fdb6537e3c6d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1518
Tested-by: BuildkiteCI
Reviewed-by: kanepyork <rikingcoding@gmail.com>
Diffstat (limited to 'ops')
-rw-r--r--ops/nixos/whitby/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/ops/nixos/whitby/default.nix b/ops/nixos/whitby/default.nix
index 9c0bc2e283..7eb85e5e80 100644
--- a/ops/nixos/whitby/default.nix
+++ b/ops/nixos/whitby/default.nix
@@ -253,6 +253,13 @@ in lib.fix(self: {
     }];
   };
 
+  services.postgresqlBackup = {
+    enable = true;
+    databases = [
+      "tvldb"
+      "panettone"
+    ];
+  };
 
   environment.systemPackages = with nixpkgs; [
     bb