about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-06-09 14:15:38 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-09 14:32:24 -0700
commit96c16abcc34612a29cda0686bddd8ebdacb4fb46 (patch)
treee878f1e27bcb66bfceeed40afe8e4055f0b6745a /modules/services
parentfix(GTK): delete commented code (diff)
downloadworld-96c16abcc34612a29cda0686bddd8ebdacb4fb46.tar.gz
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 <franck@fcuny.net>
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/gerrit/default.nix9
1 files changed, 8 insertions, 1 deletions
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;