diff options
author | Franck Cuny <franck@fcuny.net> | 2022-06-13 07:40:55 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-06-13 07:43:02 -0700 |
commit | 7bfded775e48a0c203fee055edce028fa08f3a67 (patch) | |
tree | de9e3f0b919d82e84e63794b57e7dd173d7f341d | |
parent | ref(nginx): delete unused module (diff) | |
download | world-7bfded775e48a0c203fee055edce028fa08f3a67.tar.gz |
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 <franck@fcuny.net>
Diffstat (limited to '')
-rw-r--r-- | modules/services/sourcegraph/default.nix | 8 |
1 files 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/" ]; }; }; |