2

How can I copy a database to another in Mongoose? something like this command line:

db.copyDatabase('sourceDb','destinationDb') ?

Thanks..

Ashraf Fayad
  • 1,433
  • 4
  • 17
  • 31

1 Answers1

3

There is no direct possibility in mongoose. The easiest way seems to be using the mongodb native client in parallel. Look here.

Community
  • 1
  • 1
heinob
  • 19,127
  • 5
  • 41
  • 61