Created
January 18, 2012 15:17
-
-
Save bruzed/1633477 to your computer and use it in GitHub Desktop.
mongo shell commands
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
#import collections | |
$ mongoimport -d database -c collection filename.json | |
#export collections | |
$ mongoexport -d database -c collection > filename.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment