Skip to content

Instantly share code, notes, and snippets.

@amichaelgrant
Created October 20, 2014 20:26
Show Gist options
  • Save amichaelgrant/a915de29c4765e8d407a to your computer and use it in GitHub Desktop.
Save amichaelgrant/a915de29c4765e8d407a to your computer and use it in GitHub Desktop.
importing data from rockmongo to mongodb
Use mongodump and mongorestore instead:
mongodump:
----------
mongodump --host <ip> --db <database> --out /var/lib/openshift/uuid/app-root/data --username <your-user-name> --password <your-password>
mongorestore:
-------------
mongorestore --db <database> <file-from-mongo-dump.bson>
@antoniobrandao
Copy link

What if the data was exported from RockMongo's export interface ? That command doesn't seem to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment