Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaldivyam committed Mar 28, 2024
1 parent 119dfcc commit 33dbe86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions logical-backup/dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,12 @@ function aws_upload {

function aws_upload_dir {
declare -r EXPECTED_SIZE="$1"

declare -r DB_NAME="$2"

# mimic bucket setup from Spilo
# to keep logical backups at the same path as WAL
# NB: $LOGICAL_BACKUP_S3_BUCKET_SCOPE_SUFFIX already contains the leading "/" when set by the Postgres Operator
PATH_TO_BACKUP="s3://${LOGICAL_BACKUP_S3_BUCKET}/${POSTGRES_OPERATOR}/${LOGICAL_BACKUP_S3_BUCKET_SCOPE_SUFFIX}/${PGUSER}/logical_backups/$(date +%s)"
PATH_TO_BACKUP="s3://${LOGICAL_BACKUP_S3_BUCKET}/${POSTGRES_OPERATOR}/${LOGICAL_BACKUP_S3_BUCKET_SCOPE_SUFFIX}/${PGUSER}/logical_backups/${DB_NAME}/$(date +%s)"

args=()

Expand Down

0 comments on commit 33dbe86

Please sign in to comment.