diff options
-rw-r--r-- | modules/services/grafana/default.nix | 5 | ||||
-rw-r--r-- | modules/services/sourcegraph/default.nix | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/modules/services/grafana/default.nix b/modules/services/grafana/default.nix index 773090b..fd80263 100644 --- a/modules/services/grafana/default.nix +++ b/modules/services/grafana/default.nix @@ -49,6 +49,9 @@ in { credentialsFile = secrets."acme/credentials".path; }; - my.services.backup = { paths = [ "/var/lib/grafana" ]; }; + my.services.backup = { + paths = [ "/var/lib/grafana" ]; + exclude = [ "/var/lib/grafana/log/" ]; + }; }; } diff --git a/modules/services/sourcegraph/default.nix b/modules/services/sourcegraph/default.nix index 6acf24c..e533b9d 100644 --- a/modules/services/sourcegraph/default.nix +++ b/modules/services/sourcegraph/default.nix @@ -41,6 +41,13 @@ 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/minio.log" + "/var/lib/sourcegraph/data/prometheus.log" + ]; }; }; } |