♻️ move backups manifests in their owns folders

This commit is contained in:
auricom
2022-12-29 22:46:50 +01:00
parent 9e0e346ace
commit 5dd6081bbd
135 changed files with 265 additions and 68 deletions

View File

@@ -0,0 +1,30 @@
#!/bin/sh
set -e
# Possible actions: error, pre-backup, post-backup
ACTION="$1"
if [ "$WEBHOOK_URL" != "**None**" ]; then
case "$ACTION" in
"error")
echo "Execute error webhook call to $WEBHOOK_URL"
curl --url "$WEBHOOK_URL" \
--header 'Content-Type: application/json' \
--max-time 10 \
--retry 5 \
$WEBHOOK_EXTRA_ARGS
;;
# "pre-backup")
# echo "Nothing to do"
# ;;
"post-backup")
echo "Execute post-backup webhook call to $WEBHOOK_URL"
curl --url "$WEBHOOK_URL" \
--header 'Content-Type: application/json' \
--max-time 10 \
--retry 5 \
$WEBHOOK_EXTRA_ARGS
;;
esac
fi