about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;