mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-09 08:25:00 -04:00
docs: Add kits-specific documentation for database migration
This commit is contained in:
parent
b09b117032
commit
d6189a701d
1 changed files with 15 additions and 0 deletions
15
README-KITS.md
Normal file
15
README-KITS.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
## Etherpad Lite for KITS
|
||||||
|
|
||||||
|
## Maintenance
|
||||||
|
|
||||||
|
### Restore MariaDB backup
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose -f docker-compose-prod.yml -f docker-compose-prod.override.yml --env-file .env.prod exec -T mariadb_prod mysql -u prod_database_user --password=prod_database_user_password -D prod_database_name < path_mysql_dump.sql
|
||||||
|
```
|
||||||
|
|
||||||
|
If you want to create a dump in a new database then you should execute the following command beforehand:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose -f docker-compose-prod.yml -f docker-compose-prod.override.yml --env-file .env.prod exec -T mariadb_prod mysql -u root -p -e "CREATE DATABASE IF NOT EXISTS prod_database_name; GRANT ALL PRIVILEGES ON prod_database_name.* TO prod_database_user@localhost"
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue