-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## Backup an application database | ||
Run like this example: | ||
``` | ||
$ sh app-db-backup.sh | ||
App name (inventory|catalog)> catalog | ||
``` | ||
|
||
It will create a db dump file such as `catalog-db-20230714-110218-development.gz` | ||
|
||
## Restore a database backup | ||
`catalog-db-restore.sh` is multi-purposed script and includes a lot of steps for specific catalog use case. Use `app-db-restore.sh` if you just want to restore a DB backup. | ||
|
||
First you need to create a new database, such as | ||
``` | ||
cf create-service aws-rds medium-gp-psql catalog-new-db -c "{\"storage\": 250, \"version\": \"12\"}" | ||
``` | ||
Use the existing DB for correct db plan and storage size | ||
|
||
then run this script, providing the backup file and new DB name: | ||
``` | ||
$ sh app-db-restore.sh | ||
S3 Backup path> catalog-db-20230714-110218-development.gz | ||
New Service name> catalog-new-db | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.