From 717d12f2f33738898c57564bc815e3984e7f1b78 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 1 Aug 2020 17:41:30 +0100 Subject: feat(whitby): Enable daily PostgreSQL backups ... 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 --- ops/nixos/whitby/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ops/nixos') 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 -- cgit 1.4.1