0

I want to copy my db called users binded by default to localhost:27017 to another bind address. How can I do this?

1 Answers1

0
  1. You could try using this copydb command.

  2. Otherwise, you could use mongo export, export the data to a file. Then import those data into the new database. Back Up and Restore with MongoDB Tools

    Here is the doc of mongo export mongoexport

Community
  • 1
  • 1
Alex W
  • 166
  • 9