mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-11 09:35:06 +00:00
Clarify database dumps
This commit is contained in:
parent
872883e36f
commit
ef2ae1a9b2
@ -214,7 +214,6 @@ The default settings module loaded by ``edx-platform`` is ``tutor.production``.
|
||||
|
||||
Of course, your settings should be compatible with the docker installation. You can get some inspiration from the ``production.py`` settings modules generated by Tutor, or just import it as a base by adding ``from .production import *`` at the top of ``mysettings.py``.
|
||||
|
||||
|
||||
Upgrading from earlier versions
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@ -255,11 +254,13 @@ With Tutor, all data are stored in a single folder. This means that it's extreme
|
||||
|
||||
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::
|
||||
Making database dumps
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
tutor local exec mysql mysqldump --all-databases --password="$(tutor config printvalue MYSQL_ROOT_PASSWORD)" > "$(tutor config printroot)/data/mysql/dump.sql"
|
||||
To dump all data from the MySQL and Mongodb databases used on the platform, run the following commands::
|
||||
|
||||
tutor local exec -e MYSQL_ROOT_PASSWORD="$(tutor config printvalue MYSQL_ROOT_PASSWORD)" mysql \
|
||||
sh -c 'mysqldump --all-databases --password=$MYSQL_ROOT_PASSWORD > /var/lib/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”.
|
||||
The ``dump.sql`` and ``dump.mongodb`` files will be located in ``$(tutor config printroot)/data/mysql`` and ``$(tutor config printroot)/data/mongodb``.
|
||||
|
Loading…
Reference in New Issue
Block a user