From b035a877f66a9dd4a06377aa5f72ab807cb7aebb Mon Sep 17 00:00:00 2001 From: Divyam Date: Fri, 19 Jul 2024 20:45:11 +0530 Subject: [PATCH] enable-debug --- postgres-logical-backup/dump.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/postgres-logical-backup/dump.sh b/postgres-logical-backup/dump.sh index bda482a..1973502 100755 --- a/postgres-logical-backup/dump.sh +++ b/postgres-logical-backup/dump.sh @@ -1,11 +1,12 @@ #! /usr/bin/env bash -set -eou pipefail +set -x IFS=$'\n\t' ## NOTE, these env needs to be passed in the cronjob # PGHOST PGPASSWORD - +echo $PGUSER +echo $PGPASSWORD ALL_DB_SIZE_QUERY="select sum(pg_database_size(datname)::numeric) from pg_database;" PG_BIN=/usr/lib/postgresql/$PG_VERSION/bin DUMP_SIZE_COEFF=5