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.
This commit is contained in:
Esa Nuuros
2020-10-26 15:13:37 +02:00
parent 265c33f2d9
commit 4d2034ccd4

View File

@@ -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