From 7bfded775e48a0c203fee055edce028fa08f3a67 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 13 Jun 2022 07:40:55 -0700 Subject: ref(sourcegraph): exclude more directories from backup I don't need to backup the observability data for sourcegraph. I also don't need to backup the cache. These files change a lot and are about ~300M of data every day, which creates a lot of churn for our backup. All I need if I restore a backup is the content of the database and the indexes. Change-Id: Ifaddda7626ecae32162503bc14aa8d1ffa716622 Reviewed-on: https://cl.fcuny.net/c/world/+/416 Tested-by: CI Reviewed-by: Franck Cuny --- modules/services/sourcegraph/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/services/sourcegraph/default.nix b/modules/services/sourcegraph/default.nix index 10c1880..92653c1 100644 --- a/modules/services/sourcegraph/default.nix +++ b/modules/services/sourcegraph/default.nix @@ -43,11 +43,15 @@ in my.services.backup = { paths = [ "/var/lib/sourcegraph/etc" "/var/lib/sourcegraph/data" ]; exclude = [ - "/var/lib/sourcegraph/data/grafana/logs/" - "/var/lib/sourcegraph/data/jaeger.log" "/var/lib/sourcegraph/data/grafana.log" + "/var/lib/sourcegraph/data/grafana/" + "/var/lib/sourcegraph/data/grafana/" + "/var/lib/sourcegraph/data/jaeger.log" "/var/lib/sourcegraph/data/minio.log" + "/var/lib/sourcegraph/data/minio/" "/var/lib/sourcegraph/data/prometheus.log" + "/var/lib/sourcegraph/data/prometheus/" + "/var/lib/sourcegraph/data/redis/" ]; }; }; -- cgit 1.4.1