Skip to content

Instantly share code, notes, and snippets.

@koryteg
Created July 14, 2015 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koryteg/b5bb66c836ab427152c2 to your computer and use it in GitHub Desktop.
Save koryteg/b5bb66c836ab427152c2 to your computer and use it in GitHub Desktop.
mongo dump restore
tar xvzf your_database.tar.gz
mongodump --dbpath your_database
mongorestore
In Robomongo:
use amplo_development
db.dropDatabase()
db.copyDatabase('amplo', 'amplo_development')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment