From 96c16abcc34612a29cda0686bddd8ebdacb4fb46 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 9 Jun 2022 14:15:38 -0700 Subject: fix(gerrit): don't backup tmp,logs,cache directories Change-Id: I73087942ed86fd2ad3575a4776dba97fac693468 Reviewed-on: https://cl.fcuny.net/c/world/+/361 Tested-by: CI Reviewed-by: Franck Cuny --- modules/services/gerrit/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/services') diff --git a/modules/services/gerrit/default.nix b/modules/services/gerrit/default.nix index 1d4be66..81a30e7 100644 --- a/modules/services/gerrit/default.nix +++ b/modules/services/gerrit/default.nix @@ -129,7 +129,14 @@ in { }; }; - my.services.backup = { paths = [ "/var/lib/gerrit" ]; }; + my.services.backup = { + paths = [ "/var/lib/gerrit" ]; + exclude = [ + "/var/lib/gerrit/tmp" + "/var/lib/gerrit/logs" + "/var/lib/gerrit/cache" + ]; + }; services.nginx.virtualHosts."${cfg.vhostName}" = { forceSSL = true; -- cgit 1.4.1