Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaldivyam committed Mar 28, 2024
1 parent ae18ea8 commit b628129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logical-backup/dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function estimate_size {
function dump_db {
echo "Taking dump of ${PGDATABASE} from ${PGHOST}"
# settings are taken from the environment
"$PG_BIN"/pg_dump
"$PG_BIN"/pg_dump --jobs=$PG_DUMP_NJOBS --format=d --compress=$PG_DUMP_COMPRESS --file "/tmp/db-$1" $PG_DUMP_EXTRA_ARGUMENTS $1
}

function dump_global {
Expand Down Expand Up @@ -172,7 +172,7 @@ if [[ "$LOGICAL_BACKUP_PROVIDER" == "s3" && -z "$PGDATABASE" ]]; then
list_databases > /tmp/database-list
while read dbname; do
echo "Dumping $dbname..."
dump_db $dbname > /tmp/db-$dbname
dump_db $dbname
echo "Uploading directory /tmp/db-$dbname to $PATH_TO_BACKUP/$dbname..."
aws_upload_dir "/tmp/db-$dbname" "$PATH_TO_BACKUP/$dbname"
echo "Cleaning up /tmp/db-$dbname..."
Expand Down

0 comments on commit b628129

Please sign in to comment.