Access to other projects
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
The Guia Edutec was originally developed by CIEB. The process of opening the code has made possible by financial support of Fundación ProFuturo.
mongodump No Auth : docker exec sh -c 'mongodump --archive' > db.dump
Authenticated : docker exec sh -c 'mongodump --authenticationDatabase admin -u -p --db --archive' > db.dump
mongorestore No Auth : docker exec -i sh -c 'mongorestore --archive' < db.dump
Authenticated : docker exec -i sh -c 'mongorestore --authenticationDatabase admin -u -p --db --archive' < db.dump
After any modification in the database data that is not generated by the users and is desireble that persist for other implementations is recomended update the Database seed.
For this you can run the next commands
Create temporary folder
mkdir /tmp/guia_edutec
Create a data base dump
docker run --rm -v /tmp/guia_edutec:/backup --network geos-database_geos-network mongo sh -c 'mongodump --host geos-database --port 27017 --authenticationDatabase admin -u -p --authenticationMechanism SCRAM-SHA-256 --db guia_edutec --gzip --out /backup'
Copy collections files to the mongo-seed folder of this project
cp /tmp/guia_edutec/guia_edutec/<collection_name>* /project/geos-database/mongo-seed/database/guia_edutec/.