From bd2b86a43dd1e6790a331776f653caf9bf6d287d Mon Sep 17 00:00:00 2001 From: Florian Sesser <florian@private.storage> Date: Mon, 29 Aug 2022 16:52:31 +0000 Subject: [PATCH] Backup: Borg: All logs as JSON please That makes working with its output in Grafana easier. Good documentation can be found at https://borgbackup.readthedocs.io/en/stable/internals/frontends.html#json-output --- morph/lib/borgbackup.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/morph/lib/borgbackup.nix b/morph/lib/borgbackup.nix index 56a51428..945d058d 100644 --- a/morph/lib/borgbackup.nix +++ b/morph/lib/borgbackup.nix @@ -58,6 +58,8 @@ in { # Output statistics after uploading a backup set extraCreateArgs = "--stats --json"; + # All logs in JSON to help Prometheus/Grafana + extraArgs = "--log-json"; # Ciphertext doesn't compress well compression = "none"; -- GitLab