diff --git a/openshift/s3-backup/docker/backup_to_s3.sh b/openshift/s3-backup/docker/backup_to_s3.sh index f54375c0d..d4939b054 100755 --- a/openshift/s3-backup/docker/backup_to_s3.sh +++ b/openshift/s3-backup/docker/backup_to_s3.sh @@ -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 \ No newline at end of file diff --git a/openshift/templates/crunchy_standby.yaml b/openshift/templates/crunchy_standby.yaml index 5955fb198..baf163c80 100644 --- a/openshift/templates/crunchy_standby.yaml +++ b/openshift/templates/crunchy_standby.yaml @@ -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: