mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-04 12:36:23 +00:00 
			
		
		
		
	Doc: Step 1 Removal in Backup (#21981)
Co-authored-by: “Rounak <“rounakpreet.d@deuexsolutions.com”>
This commit is contained in:
		
							parent
							
								
									b8afbb4ed2
								
							
						
					
					
						commit
						c1c2c09d0b
					
				@ -58,15 +58,7 @@ Start a local instance of OpenMetadata using the `docker-compose` file provided
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## MySQL
 | 
					## MySQL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 1. Start a local docker deployment
 | 
					### 1. Backup and Restore
 | 
				
			||||||
 | 
					 | 
				
			||||||
```shell
 | 
					 | 
				
			||||||
docker/run_local_docker.sh
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Ingest some data...
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
### 2. Backup and Restore
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
```shell
 | 
					```shell
 | 
				
			||||||
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
 | 
					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
 | 
					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
 | 
					```shell
 | 
				
			||||||
export OM_DATABASE=restore
 | 
					export OM_DATABASE=restore
 | 
				
			||||||
@ -91,15 +83,7 @@ docker compose -f $DOCKER_COMPOSE_FILE up -d
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## PostgreSQL
 | 
					## PostgreSQL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 1. Start a local docker deployment
 | 
					### 1. Backup and Restore
 | 
				
			||||||
 | 
					 | 
				
			||||||
```shell
 | 
					 | 
				
			||||||
docker/run_local_docker.sh -d postgres
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Ingest some data...
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
### 2. Backup and Restore
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
```shell
 | 
					```shell
 | 
				
			||||||
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
 | 
					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
 | 
					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
 | 
					```shell
 | 
				
			||||||
export OM_DATABASE=restore
 | 
					export OM_DATABASE=restore
 | 
				
			||||||
 | 
				
			|||||||
@ -58,15 +58,7 @@ Start a local instance of OpenMetadata using the `docker-compose` file provided
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## MySQL
 | 
					## MySQL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 1. Start a local docker deployment
 | 
					### 1. Backup and Restore
 | 
				
			||||||
 | 
					 | 
				
			||||||
```shell
 | 
					 | 
				
			||||||
docker/run_local_docker.sh
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Ingest some data...
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
### 2. Backup and Restore
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
```shell
 | 
					```shell
 | 
				
			||||||
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
 | 
					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
 | 
					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
 | 
					```shell
 | 
				
			||||||
export OM_DATABASE=restore
 | 
					export OM_DATABASE=restore
 | 
				
			||||||
@ -91,15 +83,7 @@ docker compose -f $DOCKER_COMPOSE_FILE up -d
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## PostgreSQL
 | 
					## PostgreSQL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 1. Start a local docker deployment
 | 
					### 1. Backup and Restore
 | 
				
			||||||
 | 
					 | 
				
			||||||
```shell
 | 
					 | 
				
			||||||
docker/run_local_docker.sh -d postgres
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Ingest some data...
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
### 2. Backup and Restore
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
```shell
 | 
					```shell
 | 
				
			||||||
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
 | 
					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
 | 
					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
 | 
					```shell
 | 
				
			||||||
export OM_DATABASE=restore
 | 
					export OM_DATABASE=restore
 | 
				
			||||||
 | 
				
			|||||||
@ -58,15 +58,7 @@ Start a local instance of OpenMetadata using the `docker-compose` file provided
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## MySQL
 | 
					## MySQL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 1. Start a local docker deployment
 | 
					### 1. Backup and Restore
 | 
				
			||||||
 | 
					 | 
				
			||||||
```shell
 | 
					 | 
				
			||||||
docker/run_local_docker.sh
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Ingest some data...
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
### 2. Backup and Restore
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
```shell
 | 
					```shell
 | 
				
			||||||
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
 | 
					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
 | 
					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
 | 
					```shell
 | 
				
			||||||
export OM_DATABASE=restore
 | 
					export OM_DATABASE=restore
 | 
				
			||||||
@ -91,15 +83,7 @@ docker compose -f $DOCKER_COMPOSE_FILE up -d
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## PostgreSQL
 | 
					## PostgreSQL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 1. Start a local docker deployment
 | 
					### 1. Backup and Restore
 | 
				
			||||||
 | 
					 | 
				
			||||||
```shell
 | 
					 | 
				
			||||||
docker/run_local_docker.sh -d postgres
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Ingest some data...
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
### 2. Backup and Restore
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
```shell
 | 
					```shell
 | 
				
			||||||
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
 | 
					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
 | 
					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
 | 
					```shell
 | 
				
			||||||
export OM_DATABASE=restore
 | 
					export OM_DATABASE=restore
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user