DEV-1029: added debugging stuff to hopefully get more insights - bugfix3

ocr-jwt-token
friedrich goerz 3 years ago committed by Michael Haehnel
parent ca449385ef
commit b361e190a6
No known key found for this signature in database
GPG Key ID: D2FA233B52AEC75C

@ -1,15 +1,13 @@
apiVersion: v1
data:
nsodevops_postgres_backup_wrapper.sh: |
#!/bin/bash
envdir "/run/etc/wal-e.d/env" bash -x /nsoscripts/postgres_backup.sh "/home/postgres/pgdata/pgroot/data" >> /tmp/backup_cron_`date +%F`.log
postgres_backup.sh: |
#!/bin/bash
# fgoerz
DEBUG_LOG="/tmp/pg_backup_`date +%F`.log"
echo "Plz check $DEBUG_LOG for debugging purpose. EVERY output will be redirected!"
# fgoerz DEV-1029
# pipe all output to file for debugging purpose
exec 2>&1 1>$DEBUG_LOG
function log
{

@ -10,7 +10,7 @@ data:
AWS_REGION: ""
AWS_S3_FORCE_PATH_STYLE: "true" # needed for MinIO
BACKUP_NUM_TO_RETAIN: "7"
# BACKUP_SCHEDULE: "00 2 * * *"
BACKUP_SCHEDULE: "00 2 * * *"
CLONE_USE_WALG_RESTORE: "true"
USE_WALG_BACKUP: "true"
USE_WALG_RESTORE: "true"

@ -82,7 +82,8 @@ smardigo-connect:
- postgres
-
name: pg-backup-script
mountPath: /nsoscripts
mountPath: /scripts/postgres_backup.sh
subPath: postgres_backup.sh
volumeSource:
configMap:
name: pg-backup-script

Loading…
Cancel
Save