From c1c2c09d0bb565e1b865757c2ad5b18a77b9f2b0 Mon Sep 17 00:00:00 2001 From: Rounak Dhillon <162090200+RounakDhillon@users.noreply.github.com> Date: Thu, 26 Jun 2025 16:08:36 +0530 Subject: [PATCH] Doc: Step 1 Removal in Backup (#21981) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: “Rounak <“rounakpreet.d@deuexsolutions.com”> --- .../deployment/backup-restore-metadata.md | 24 ++++--------------- .../deployment/backup-restore-metadata.md | 24 ++++--------------- .../deployment/backup-restore-metadata.md | 24 ++++--------------- 3 files changed, 12 insertions(+), 60 deletions(-) diff --git a/openmetadata-docs/content/v1.7.x/deployment/backup-restore-metadata.md b/openmetadata-docs/content/v1.7.x/deployment/backup-restore-metadata.md index 04a2afc42cf..94e8254af85 100644 --- a/openmetadata-docs/content/v1.7.x/deployment/backup-restore-metadata.md +++ b/openmetadata-docs/content/v1.7.x/deployment/backup-restore-metadata.md @@ -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 diff --git a/openmetadata-docs/content/v1.8.x/deployment/backup-restore-metadata.md b/openmetadata-docs/content/v1.8.x/deployment/backup-restore-metadata.md index 04a2afc42cf..94e8254af85 100644 --- a/openmetadata-docs/content/v1.8.x/deployment/backup-restore-metadata.md +++ b/openmetadata-docs/content/v1.8.x/deployment/backup-restore-metadata.md @@ -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 diff --git a/openmetadata-docs/content/v1.9.x-SNAPSHOT/deployment/backup-restore-metadata.md b/openmetadata-docs/content/v1.9.x-SNAPSHOT/deployment/backup-restore-metadata.md index 04a2afc42cf..94e8254af85 100644 --- a/openmetadata-docs/content/v1.9.x-SNAPSHOT/deployment/backup-restore-metadata.md +++ b/openmetadata-docs/content/v1.9.x-SNAPSHOT/deployment/backup-restore-metadata.md @@ -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