From 4d2034ccd4188d91e32289c2d0b644272d664f30 Mon Sep 17 00:00:00 2001 From: Esa Nuuros Date: Mon, 26 Oct 2020 15:13:37 +0200 Subject: [PATCH] Pass backup exit code to post-backup.sh hook We can write our own hook that can choose what to do based on the exit code. For example, we may only want to sent notifications on failures. --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 809ebb9..12ce6dc 100755 --- a/backup.sh +++ b/backup.sh @@ -69,7 +69,7 @@ fi if [ -f "/hooks/post-backup.sh" ]; then echo "Starting post-backup script ..." - /hooks/post-backup.sh + /hooks/post-backup.sh $backupRC else echo "Post-backup script not found ..." fi