Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export MongoDB database from Docker #1

Closed
dhimmel opened this issue Mar 22, 2017 · 1 comment
Closed

Export MongoDB database from Docker #1

dhimmel opened this issue Mar 22, 2017 · 1 comment

Comments

@dhimmel
Copy link
Collaborator

dhimmel commented Mar 22, 2017

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
Copy link
Collaborator Author

dhimmel commented Mar 22, 2017

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

@dhimmel dhimmel closed this as completed Apr 3, 2017
dhimmel added a commit that referenced this issue Apr 3, 2017
Queries began on 2017-03-21 and completed on 2017-04-02. The process
died or stalled several times, but was restarted using cursor.
In total, 87,542,370 works were retrieved and stored in MongoDB.

Add mongoexport command. Closes
#1
Add mongodb to environment for mongoexport. Used `mongodb=2` due to
ContinuumIO/anaconda-issues#890
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant