🩹 fix pg backups

This commit is contained in:
auricom
2023-01-04 19:16:09 +01:00
parent 3da5f93461
commit 74d2c4ba59
2 changed files with 0 additions and 37 deletions

View File

@@ -1,30 +0,0 @@
#!/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

View File

@@ -46,15 +46,8 @@ spec:
volumeMounts:
- name: backups
mountPath: /backups
- name: files
subPath: 00-webhook
mountPath: /hooks/00-webhook
volumes:
- name: backups
nfs:
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/backups/postgresql
- name: files
configMap:
name: postgres-external-backup
defaultMode: 0555