mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-27 15:08:23 +00:00
Add instructions for database dumps
Changes proposed in https://github.com/overhangio/tutor/issues/290
This commit is contained in:
parent
313f7172ed
commit
4c4865cc1b
@ -255,4 +255,11 @@ With Tutor, all data are stored in a single folder. This means that it's extreme
|
|||||||
|
|
||||||
tutor local start -d
|
tutor local start -d
|
||||||
|
|
||||||
|
Database Dumps
|
||||||
|
~~~~~~~~~~~~~~
|
||||||
|
To dump all the data from the mysql and mongodb databases used on the platform, run the following command::
|
||||||
|
|
||||||
|
tutor local exec mysql mysqldump --all-databases --password="$(tutor config printvalue MYSQL_ROOT_PASSWORD)" > "$(tutor config printroot)/data/mysql/dump.sql"
|
||||||
|
tutor local exec mongodb mongodump --out=/data/db/dump.mongodb
|
||||||
|
|
||||||
|
The dump files will be located in “$(tutor config printroot)/data/mysql” and “$(tutor config printroot)/data/mongodb”.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user