Skip to content

update db backup and restore#26

Open
FuhuXia wants to merge 4 commits into
mainfrom
update-db-backup-restore
Open

update db backup and restore#26
FuhuXia wants to merge 4 commits into
mainfrom
update-db-backup-restore

Conversation

@FuhuXia

@FuhuXia FuhuXia commented Jul 14, 2023

Copy link
Copy Markdown
Member

made the script works for both catalog and inventory app.

added a readme file.

@FuhuXia FuhuXia force-pushed the update-db-backup-restore branch from ad40aa4 to 1fd8c56 Compare July 14, 2023 17:42

# cleanup
cf delete-service catalog-db-venerable No newline at end of file
cf delete-service catalog-db-venerable

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