0

I am a newbie to MongoDB.

I use mongodb db.copyDatabase command for copying database to another server.

After I copy(I got the Ok sign from mongo shell), I found something strange.

In my source Server db

> show dbs
newstrust             13.947GB

In my Target Server db

> show dbs
ntrust1     2.188GB

I checked my db and compare source server db and target server db. The number of collections and rows are same.

I am not able to understand the problem

문승현
  • 21
  • 1
  • 7
  • Have you deleted lots of information (in some point) from newstrust? Because a copy of the database will "remove" all empty space. – JJussi Aug 03 '17 at 06:19
  • Thank's JJussi! I got hint of my question from your answer. I write my understanding in new answer. Really, really thanks. you save my day – 문승현 Aug 06 '17 at 14:05

0 Answers0