From 06301380f169fa3a340eadf80269f1bb1830f58a Mon Sep 17 00:00:00 2001 From: Florian Sesser <florian@private.storage> Date: Mon, 13 Feb 2023 12:51:58 +0000 Subject: [PATCH] Crank up borgbackup log level to INFO (from default WARN) The default log level ("WARN") means borgbackup does not output anything (and exits with a "0" return code) on success. We'd like to have some more insight into long-running monthly backup repo checks and turn up the log level to "INFO" with this change. See https://borgbackup.readthedocs.io/en/stable/usage/general.html#common-options . Fixes #136. --- morph/lib/borgbackup.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morph/lib/borgbackup.nix b/morph/lib/borgbackup.nix index 945d058d..16df515c 100644 --- a/morph/lib/borgbackup.nix +++ b/morph/lib/borgbackup.nix @@ -80,7 +80,7 @@ in { BORG_RSH = "ssh -i /run/keys/borgbackup/ssh-key -o StrictHostKeyChecking=accept-new"; BORG_REPO = lib.fileContents "${publicKeyPath}/borgbackup/${config.networking.hostName}.repopath"; }; - script = ''${pkgs.borgbackup}/bin/borg check''; + script = ''${pkgs.borgbackup}/bin/borg check --verbose --log-json''; }; }; } -- GitLab