Doc: Step 1 Removal in Backup (#21981)

Co-authored-by: “Rounak <“rounakpreet.d@deuexsolutions.com”>
This commit is contained in:
Rounak Dhillon 2025-06-26 16:08:36 +05:30 committed by GitHub
parent b8afbb4ed2
commit c1c2c09d0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 60 deletions

View File

@ -58,15 +58,7 @@ Start a local instance of OpenMetadata using the `docker-compose` file provided
## MySQL
### 1. Start a local docker deployment
```shell
docker/run_local_docker.sh
```
Ingest some data...
### 2. Backup and Restore
### 1. Backup and Restore
```shell
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
@ -82,7 +74,7 @@ docker compose exec mysql mysql -u root -ppassword -e "flush privileges;"
docker compose exec -T ingestion mysql -u openmetadata_user -popenmetadata_password -h mysql -P 3306 restore < $BACKUP_FILE
```
### 3. Restart the docker deployment with the restored database
### 2. Restart the docker deployment with the restored database
```shell
export OM_DATABASE=restore
@ -91,15 +83,7 @@ docker compose -f $DOCKER_COMPOSE_FILE up -d
## PostgreSQL
### 1. Start a local docker deployment
```shell
docker/run_local_docker.sh -d postgres
```
Ingest some data...
### 2. Backup and Restore
### 1. Backup and Restore
```shell
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
@ -113,7 +97,7 @@ docker compose exec -e PGPASSWORD=openmetadata_password postgresql psql -U postg
docker compose exec -e PGPASSWORD=openmetadata_password -T ingestion psql -U openmetadata_user -h postgresql -d restore < $BACKUP_FILE
```
### 3. Restart the docker deployment with the restored database
### 2. Restart the docker deployment with the restored database
```shell
export OM_DATABASE=restore

View File

@ -58,15 +58,7 @@ Start a local instance of OpenMetadata using the `docker-compose` file provided
## MySQL
### 1. Start a local docker deployment
```shell
docker/run_local_docker.sh
```
Ingest some data...
### 2. Backup and Restore
### 1. Backup and Restore
```shell
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
@ -82,7 +74,7 @@ docker compose exec mysql mysql -u root -ppassword -e "flush privileges;"
docker compose exec -T ingestion mysql -u openmetadata_user -popenmetadata_password -h mysql -P 3306 restore < $BACKUP_FILE
```
### 3. Restart the docker deployment with the restored database
### 2. Restart the docker deployment with the restored database
```shell
export OM_DATABASE=restore
@ -91,15 +83,7 @@ docker compose -f $DOCKER_COMPOSE_FILE up -d
## PostgreSQL
### 1. Start a local docker deployment
```shell
docker/run_local_docker.sh -d postgres
```
Ingest some data...
### 2. Backup and Restore
### 1. Backup and Restore
```shell
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
@ -113,7 +97,7 @@ docker compose exec -e PGPASSWORD=openmetadata_password postgresql psql -U postg
docker compose exec -e PGPASSWORD=openmetadata_password -T ingestion psql -U openmetadata_user -h postgresql -d restore < $BACKUP_FILE
```
### 3. Restart the docker deployment with the restored database
### 2. Restart the docker deployment with the restored database
```shell
export OM_DATABASE=restore

View File

@ -58,15 +58,7 @@ Start a local instance of OpenMetadata using the `docker-compose` file provided
## MySQL
### 1. Start a local docker deployment
```shell
docker/run_local_docker.sh
```
Ingest some data...
### 2. Backup and Restore
### 1. Backup and Restore
```shell
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
@ -82,7 +74,7 @@ docker compose exec mysql mysql -u root -ppassword -e "flush privileges;"
docker compose exec -T ingestion mysql -u openmetadata_user -popenmetadata_password -h mysql -P 3306 restore < $BACKUP_FILE
```
### 3. Restart the docker deployment with the restored database
### 2. Restart the docker deployment with the restored database
```shell
export OM_DATABASE=restore
@ -91,15 +83,7 @@ docker compose -f $DOCKER_COMPOSE_FILE up -d
## PostgreSQL
### 1. Start a local docker deployment
```shell
docker/run_local_docker.sh -d postgres
```
Ingest some data...
### 2. Backup and Restore
### 1. Backup and Restore
```shell
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
@ -113,7 +97,7 @@ docker compose exec -e PGPASSWORD=openmetadata_password postgresql psql -U postg
docker compose exec -e PGPASSWORD=openmetadata_password -T ingestion psql -U openmetadata_user -h postgresql -d restore < $BACKUP_FILE
```
### 3. Restart the docker deployment with the restored database
### 2. Restart the docker deployment with the restored database
```shell
export OM_DATABASE=restore