Created
December 2, 2014 14:44
-
-
Save milingo/3fe4441f1f416ff7680b to your computer and use it in GitHub Desktop.
mongodb cheatsheet
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
### Clone collection from remote host | |
mongo | |
use <database> | |
db.cloneCollection("remote.host:27017", "<collection>") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment