Skip to content

webvalley/wv-mongo-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebValley 2019 Data Swiffer

Work done by the database team, see AUTHORS file

License is AGPL v. 3 , see LICENSE

Privileges separation

The db-debootstrap.sh script copies the db-privileges.sh to the container and runs it. That script creates two roles, doctor and researcher, and two test users, dr_chierici and beatrice.

The doctor can access the whole plic database. The researcher, instead, can only read the anonimized data.

Database dump

To easily backup your Mongo PLIC database you can simply run db-dump.sh . It will generate a directory under /tmp/mongo/plic with the export. You'll be able to re-import the export with mongorestore.