Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

FuhuXia
Copy link
Member

@FuhuXia FuhuXia commented Jul 14, 2023

made the script works for both catalog and inventory app.

added a readme file.

cf delete-service catalog-db-venerable
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants