Skip to content

Commit

Permalink
enable-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaldivyam authored Jul 19, 2024
1 parent 9b512d1 commit b035a87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions postgres-logical-backup/dump.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b035a87

Please sign in to comment.