Vijay Reddy
Vijay Reddy

Reputation: 19

Mongodb complete db export and import

I need to export complete staging database and import into local database. As per my R&D only collections are being to export and import. Can anyone suggest how to import complete database and import into local. I'm using meteor for development

Upvotes: 0

Views: 145

Answers (1)

Minh Nguyen
Minh Nguyen

Reputation: 490

By default, Meteor has built-in mongodb server running at port which equals to Meteor webserver port + 1. For example, if your Meteor runs at port 3000 then the mongodb runs at port 3001. You can use mongodump and mongorestore to export and import database.

Upvotes: 1

Related Questions