added pre and post run script variables

This commit is contained in:
Paul Wilde 2023-01-17 12:23:25 +00:00
parent 5aa78f7a1a
commit b0233944c2
2 changed files with 3 additions and 0 deletions

View file

@ -13,6 +13,7 @@ curl https://hc-ping.com/$HEALTH_UUID/start
$PRE_RUN_SCRIPTS
$BACKUP_CMD
if [[ $? == 0 ]]; then
$POST_RUN_SCRIPTS
curl https://hc-ping.com/$HEALTH_UUID
else
curl https://hc-ping.com/$HEALTH_UUID/fail

View file

@ -2,6 +2,8 @@ NAME=Backup Name
BACKUP_DIR=/dir/to/back/up
BACKUP_PARAMS=""
HEALTHCHECK_UUID="healthchecks.io uuid"
PRE_RUN_SCRIPT="script to pre-run"
POST_RUN_SCRIPT="script to post-run"
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=