From b71910e379ff844c5568c903fbfc1b93e53501e3 Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Wed, 1 Jan 2025 21:28:20 -0500 Subject: [PATCH] send notification on success or failure --- backup.nix | 60 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 26 deletions(-) diff --git a/backup.nix b/backup.nix index 6e136e5..79649a0 100644 --- a/backup.nix +++ b/backup.nix @@ -17,8 +17,8 @@ let tar -cz -C /var/lib/redis-misskey . ''; - notifyErrorPkg = pkgs.writeShellApplication { - name = "notify-error"; + notifyEmailPkg = pkgs.writeShellApplication { + name = "notify-email"; runtimeInputs = [ pkgs.system-sendmail pkgs.coreutils ]; @@ -29,10 +29,15 @@ let to="admin@heartles.xyz" - email="$(cat <