Created
July 14, 2015 17:46
-
-
Save koryteg/b5bb66c836ab427152c2 to your computer and use it in GitHub Desktop.
mongo dump restore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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