Skip to content

Commit

Permalink
Standby cluster update (#4162)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgboss authored Dec 6, 2024
1 parent a8fb048 commit 4387d62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openshift/s3-backup/docker/backup_to_s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ _target_folder="${PG_HOSTNAME}_${PG_DATABASE}/${_datestamp}"
# Using the official aws cli to upload the database back to S3:
# pg_dump | gzip | aws s3:
# this is tested and works.
PGPASSWORD="${PG_PASSWORD}" pg_dump -Fp -h "${PG_HOSTNAME}" -p ${PG_PORT} -U "${PG_USER}" "${PG_DATABASE}" | gzip | AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY}" AWS_SECRET_ACCESS_KEY="${AWS_SECRET_KEY}" aws --endpoint="https://${AWS_HOSTNAME}" s3 cp - "s3://${AWS_BUCKET}/backup/${_target_folder}/${_target_filename}"
PGPASSWORD="${PG_PASSWORD}" pg_dump -Fp -h --no-owner "${PG_HOSTNAME}" -p ${PG_PORT} -U "${PG_USER}" "${PG_DATABASE}" | gzip | AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY}" AWS_SECRET_ACCESS_KEY="${AWS_SECRET_KEY}" aws --endpoint="https://${AWS_HOSTNAME}" s3 cp - "s3://${AWS_BUCKET}/backup/${_target_folder}/${_target_filename}"

# Run python code to prune old backups.
python3 prune.py
4 changes: 2 additions & 2 deletions openshift/templates/crunchy_standby.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ objects:
metadata:
name: wps-crunchydb-standby
spec:
postgresVersion: 14
postGISVersion: "3.2"
postgresVersion: 16
postGISVersion: "3.3"
metadata:
name: wps-crunchydb-standby
labels:
Expand Down

0 comments on commit 4387d62

Please sign in to comment.