Skip to content

Instantly share code, notes, and snippets.

@milingo
Created December 2, 2014 14:44
Show Gist options
  • Save milingo/3fe4441f1f416ff7680b to your computer and use it in GitHub Desktop.
Save milingo/3fe4441f1f416ff7680b to your computer and use it in GitHub Desktop.
mongodb cheatsheet
### 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