Skip to content

Commit

Permalink
add healthchecks.io support
Browse files Browse the repository at this point in the history
  • Loading branch information
1ARdotNO authored Aug 21, 2024
1 parent 1a7dd6e commit 99dcd17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ udpate
- CLEANBACKUPDIRBEFORE=false #automatically deletes all files from the backup directory before process start
- CLEANBACKUPDIRAFTER=false #automatically deletes all files from the backup directory after process run
- ARCHIVEPERITEM=false #automatically create 1 archive in the backup per folder in the source directory
- HEALTHCHECKSURL=https://hc-ping.com/xxxxxxxxxxxx #disabled by default, put a healthchecks.io endpoint here or any other similar endpoint you want pinged with a "GET" when the job is successfull
#Bitwarden
- BW_CLIENTID=87asdhj1 #You API client ID
- BW_CLIENTSECRET=secretsecretsecret #Your API secret
Expand Down
2 changes: 2 additions & 0 deletions reporting.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ if(($data | convertfrom-json).status -like "Fail"){
if($retrycount -le $ENV:MAXRETRY){
. /backupscript.ps1
}
}elseif($ENV:HEALTHCHECKSURL){
invoke-webrequest $ENV:HEALTHCHECKSURL -SkipHttpErrorCheck -SkipCertificateCheck -SkipHeaderValidation -ErrorAction SilentlyContinue
}

0 comments on commit 99dcd17

Please sign in to comment.