diff options
| author | schererleander <leander@schererleander.de> | 2026-05-25 01:56:22 +0200 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2026-05-25 02:11:52 +0200 |
| commit | 033f25f6840bf41ab07c6f0c3cc2880b794b5b57 (patch) | |
| tree | 3fb61b7d6714e1bdd6d2dc0a82b71d99dc3b7f25 /modules/services/git.nix | |
| parent | 523a00457a79b35ada98ac10172be557e3eea235 (diff) | |
feat(borg-backup): add failure notifications and log stats
Diffstat (limited to 'modules/services/git.nix')
| -rw-r--r-- | modules/services/git.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/services/git.nix b/modules/services/git.nix index 4249bd0..12ef804 100644 --- a/modules/services/git.nix +++ b/modules/services/git.nix @@ -82,14 +82,15 @@ config.sops.secrets."borgbase_ssh_key".path } -o StrictHostKeyChecking=accept-new"; }; + extraCreateArgs = [ "--info" "--stats" ]; compression = "auto,lzma"; startAt = "daily"; preHook = '' set -euo pipefail - - # Exporting the specific Git repo secret export BORG_REPO="$(cat ${config.sops.secrets."borg_git_repo".path})" ''; }; + + systemd.services."borgbackup-job-git".unitConfig.OnFailure = [ "notify-backup-failure@%n.service" ]; }; } |
