Skip to content

Commit

Permalink
handle LOGICAL_BACKUP_S3_ENDPOINT variable so when its not passed the…
Browse files Browse the repository at this point in the history
… script doesn't fail.
  • Loading branch information
nihaldivyam authored Jul 19, 2024
1 parent 9b512d1 commit 3a13cec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions postgres-logical-backup/dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ERRORCOUNT=0
POSTGRES_OPERATOR=spilo
LOGICAL_BACKUP_PROVIDER=${LOGICAL_BACKUP_PROVIDER:="s3"}
LOGICAL_BACKUP_S3_RETENTION_TIME=${LOGICAL_BACKUP_S3_RETENTION_TIME:=""}
LOGICAL_BACKUP_S3_ENDPOINT=${LOGICAL_BACKUP_S3_ENDPOINT:-}

function estimate_size {
"$PG_BIN"/psql -tqAc "${ALL_DB_SIZE_QUERY}"
Expand Down

0 comments on commit 3a13cec

Please sign in to comment.