-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update db backup and restore #26
base: main
Are you sure you want to change the base?
Conversation
ad40aa4
to
1fd8c56
Compare
cf delete-service catalog-db-venerable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can include -f
to delete without confirmation if we want here. otherwise we'll need to periodically checkin and confirm when prompted
cf bind-service backup-manager catalog-db-new | ||
cf restart backup-manager | ||
|
||
cf scale backup-manager -i 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was getting an ssh error with the app when 0 instances are up so i scale up and down
db_plan=large-gp-psql | ||
fi | ||
cf create-service aws-rds ${db_plan} catalog-db-new -c "{\"storage\": ${storage_size}, \"version\": \"12\"}" --wait | ||
cf create-service aws-rds ${db_plan} catalog-db-new -c "{\"storage\": ${storage_size}, \"version\": \"15\"}" --wait |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want to hardcode the version number here? @FuhuXia
made the script works for both catalog and inventory app.
added a readme file.