Skip to content

Instantly share code, notes, and snippets.

@johnsinco
Created March 9, 2013 19:06
Show Gist options
  • Save johnsinco/5125316 to your computer and use it in GitHub Desktop.
Save johnsinco/5125316 to your computer and use it in GitHub Desktop.
load your local instance with QA1 data.
c:\dev>mongo 10.0.20.154:27017
MongoDB shell version: 2.0.2-rc1
connecting to: 10.0.20.154:27017/test
> show dbs
local (empty)
> db.copyDatabase('edist_staging','edist_development','qa1-cms-db1:33478');
{ "ok" : 1 }
> show dbs
admin (empty)
edist_development 0.125GB
local (empty)
> exit
bye
c:\dev>mongo 10.0.20.154:27017
MongoDB shell version: 2.0.2-rc1
connecting to: 10.0.20.154:27017/test
> show dbs
admin (empty)
edist_development 0.125GB
fund_development 0.03125GB
local (empty)
> db.copyDatabase('fund','fund_development','qa1-cms-db1:33478');
{ "ok" : 1 }
> use fund_development
switched to db fund_development
> show collections
closed_fund_snapshots
fund_snapshots
system.indexes
> db.fund_snapshots.count();
338
> exit
bye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment