Created
March 9, 2013 19:06
-
-
Save johnsinco/5125316 to your computer and use it in GitHub Desktop.
load your local instance with QA1 data.
This file contains hidden or 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
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