Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions content/v1.10.x/deployment/backup-restore-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ Start a local instance of OpenMetadata using the `docker-compose` file provided
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
export COMPOSE_FILE="docker/development/docker-compose.yml"
# backup
docker compose exec ingestion mysqldump --no-tablespaces -u openmetadata_user -popenmetadata_password -h mysql -P 3306 openmetadata_db > $BACKUP_FILE
docker compose exec ingestion mysqldump --no-tablespaces -u openmetadata_user -p openmetadata_password -h mysql -P 3306 openmetadata_db > $BACKUP_FILE
# create the restore database
docker compose exec mysql mysql -u root -ppassword -e "create database restore;"
docker compose exec mysql mysql -u root -ppassword -e "grant all privileges on restore.* to 'openmetadata_user'@'%';"
docker compose exec mysql mysql -u root -ppassword -e "GRANT SUPER, SYSTEM_VARIABLES_ADMIN, SESSION_VARIABLES_ADMIN ON *.* TO 'openmetadata_user'@'%';"
docker compose exec mysql mysql -u root -ppassword -e "flush privileges;"
docker compose exec mysql mysql -u root -p password -e "create database restore;"
docker compose exec mysql mysql -u root -p password -e "grant all privileges on restore.* to 'openmetadata_user'@'%';"
docker compose exec mysql mysql -u root -p password -e "GRANT SUPER, SYSTEM_VARIABLES_ADMIN, SESSION_VARIABLES_ADMIN ON *.* TO 'openmetadata_user'@'%';"
docker compose exec mysql mysql -u root -p password -e "flush privileges;"
# restore from the backup
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 -p openmetadata_password -h mysql -P 3306 restore < $BACKUP_FILE
```

### 2. Restart the docker deployment with the restored database
Expand Down
12 changes: 6 additions & 6 deletions content/v1.11.x-SNAPSHOT/deployment/backup-restore-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ Start a local instance of OpenMetadata using the `docker-compose` file provided
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
export COMPOSE_FILE="docker/development/docker-compose.yml"
# backup
docker compose exec ingestion mysqldump --no-tablespaces -u openmetadata_user -popenmetadata_password -h mysql -P 3306 openmetadata_db > $BACKUP_FILE
docker compose exec ingestion mysqldump --no-tablespaces -u openmetadata_user -p openmetadata_password -h mysql -P 3306 openmetadata_db > $BACKUP_FILE
# create the restore database
docker compose exec mysql mysql -u root -ppassword -e "create database restore;"
docker compose exec mysql mysql -u root -ppassword -e "grant all privileges on restore.* to 'openmetadata_user'@'%';"
docker compose exec mysql mysql -u root -ppassword -e "GRANT SUPER, SYSTEM_VARIABLES_ADMIN, SESSION_VARIABLES_ADMIN ON *.* TO 'openmetadata_user'@'%';"
docker compose exec mysql mysql -u root -ppassword -e "flush privileges;"
docker compose exec mysql mysql -u root -p password -e "create database restore;"
docker compose exec mysql mysql -u root -p password -e "grant all privileges on restore.* to 'openmetadata_user'@'%';"
docker compose exec mysql mysql -u root -p password -e "GRANT SUPER, SYSTEM_VARIABLES_ADMIN, SESSION_VARIABLES_ADMIN ON *.* TO 'openmetadata_user'@'%';"
docker compose exec mysql mysql -u root -p password -e "flush privileges;"
# restore from the backup
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 -p openmetadata_password -h mysql -P 3306 restore < $BACKUP_FILE
```

### 2. Restart the docker deployment with the restored database
Expand Down
12 changes: 6 additions & 6 deletions content/v1.9.x/deployment/backup-restore-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ Start a local instance of OpenMetadata using the `docker-compose` file provided
BACKUP_FILE="backup_$(date +%Y%m%d%H%M).sql"
export COMPOSE_FILE="docker/development/docker-compose.yml"
# backup
docker compose exec ingestion mysqldump --no-tablespaces -u openmetadata_user -popenmetadata_password -h mysql -P 3306 openmetadata_db > $BACKUP_FILE
docker compose exec ingestion mysqldump --no-tablespaces -u openmetadata_user -p openmetadata_password -h mysql -P 3306 openmetadata_db > $BACKUP_FILE
# create the restore database
docker compose exec mysql mysql -u root -ppassword -e "create database restore;"
docker compose exec mysql mysql -u root -ppassword -e "grant all privileges on restore.* to 'openmetadata_user'@'%';"
docker compose exec mysql mysql -u root -ppassword -e "GRANT SUPER, SYSTEM_VARIABLES_ADMIN, SESSION_VARIABLES_ADMIN ON *.* TO 'openmetadata_user'@'%';"
docker compose exec mysql mysql -u root -ppassword -e "flush privileges;"
docker compose exec mysql mysql -u root -p password -e "create database restore;"
docker compose exec mysql mysql -u root -p password -e "grant all privileges on restore.* to 'openmetadata_user'@'%';"
docker compose exec mysql mysql -u root -p password -e "GRANT SUPER, SYSTEM_VARIABLES_ADMIN, SESSION_VARIABLES_ADMIN ON *.* TO 'openmetadata_user'@'%';"
docker compose exec mysql mysql -u root -p password -e "flush privileges;"
# restore from the backup
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 -p openmetadata_password -h mysql -P 3306 restore < $BACKUP_FILE
```

### 2. Restart the docker deployment with the restored database
Expand Down