Skip to content

Commit

Permalink
add db version param
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed Sep 27, 2024
1 parent 6fb52dd commit 5dced73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/backup_restore/catalog-db-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ read -p "Space name> " space_name
read -p "S3 Backup path> " backup_path
read -p "Storage size for new db> " storage_size
read -p "Service plan> " db_plan
read -p "DB Version> " db_version

function wait_for () {
while ! (cf tasks backup-manager | grep -q "$1 .*SUCCEEDED"); do
Expand All @@ -24,7 +25,7 @@ cf set-env backup-manager DATASTORE_S3_SERVICE_NAME backup-manager-s3
# Go to the correct space
cf target -s $space_name

cf create-service aws-rds ${db_plan} catalog-db-new -c "{\"storage\": ${storage_size}, \"version\": \"15\"}" --wait
cf create-service aws-rds ${db_plan} catalog-db-new -c "{\"storage\": ${storage_size}, \"version\": \"${db_version}\"}" --wait
cf bind-service backup-manager catalog-db-new
cf restart backup-manager

Expand Down

0 comments on commit 5dced73

Please sign in to comment.