about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-28 13:54:57 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-28 13:58:21 -0700
commit96788680b7b3cb73b1d827fbfb38ead089e448ea (patch)
tree266f9c69737e0413c7d5edfdec29543ac17b197d /modules/services
parentdocs: start documenting gerrit (diff)
downloadworld-96788680b7b3cb73b1d827fbfb38ead089e448ea.tar.gz
feat(gerrit): backup all relevant directories
Change-Id: I7d70a25f95cddedaba5e5186b6e7f83ddf9e7eb9
Reviewed-on: https://cl.fcuny.net/c/world/+/84
Reviewed-by: Franck Cuny <franck@fcuny.net>
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/gerrit/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/services/gerrit/default.nix b/modules/services/gerrit/default.nix
index ed43ce5..a3e5e78 100644
--- a/modules/services/gerrit/default.nix
+++ b/modules/services/gerrit/default.nix
@@ -95,6 +95,8 @@ in {
       };
     };
 
+    my.services.backup = { paths = [ "/var/lib/gerrit" ]; };
+
     services.nginx.virtualHosts."${cfg.vhostName}" = {
       forceSSL = true;
       enableACME = true;