Data pack up using tutor

how to pack up data in mysql and mongo databases found in docker containers

Hi @kottab! Do you mean to dump the data from the mysql and mongodb databases? Here you go:

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”.

This information should probably be in a guide somewhere. I created an issue to keep track:

thank you for your help