greenelab / crossref

Download metadata for all DOIs using the Crossref API
https://doi.org/b48h
Creative Commons Zero v1.0 Universal
59 stars 10 forks source link

Export MongoDB database from Docker #1

Closed dhimmel closed 7 years ago

dhimmel commented 7 years ago

The goal is to export the MongoDB containing cached Crossref items. We could then archive this file, say on figshare, so others don't have to submit insane amounts of API queries.

dhimmel commented 7 years ago

Currently, I've tried the following command

# Dump docker
docker run \
  --rm \
  --link=mongo-crossref:mongo-crossref-dump \
  --volume=`pwd`/db-export:/backup \
  mongo:3.4.2 \
  bash -c 'mongodump --out=/backup --host=0.0.0.0'

However, this errs with:

Failed: error connecting to db server: no reachable servers