Skip to content

EL-BID/geos-database

Repository files navigation

Guia Edutec Repository - Open Source

Database project

Access to other projects


Shield: CC BY-SA 4.0

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

CC BY-SA 4.0


The Guia Edutec was originally developed by CIEB. The process of opening the code has made possible by financial support of Fundación ProFuturo.


Backup database commands

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

Update Database Seed

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published