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

ocr-jwt-token
friedrich goerz 3 years ago
parent 955c708d10
commit e3dfecf4e8

@ -1,15 +1,13 @@
apiVersion: v1 apiVersion: v1
data: 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: | postgres_backup.sh: |
#!/bin/bash #!/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 function log
{ {

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

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

Loading…
Cancel
Save