added pre and post run script variables
This commit is contained in:
parent
5aa78f7a1a
commit
b0233944c2
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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=
|
||||
|
|
Loading…
Reference in a new issue