diff options
author | Vincent Ambo <mail@tazj.in> | 2020-08-01T16·41+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-08-01T16·52+0000 |
commit | 717d12f2f33738898c57564bc815e3984e7f1b78 (patch) | |
tree | 21e20e20712cf5beaf80bd7c97ee421ba7dde51e | |
parent | f7d5d5c5421718a7f3a60bec0a930ac48494d480 (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>
-rw-r--r-- | ops/nixos/whitby/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ops/nixos/whitby/default.nix b/ops/nixos/whitby/default.nix index 9c0bc2e2836a..7eb85e5e800c 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 |