Welcome, Guest Login

Public Cloud Center

Transferring MongoDB to MongoDB Atlas

Last Updated: Apr 05, 2017 10:00AM EDT

Perform a Mongodump of your database on Xervo

There is an article here on how to get a mongodump (backup) of your database on Xervo.  You will use this mongodump to transfer all of the data from your database on Xervo to your new database on MongoDB Atlas.

A quick recap of the mongodump article: here is an example of a mongodump command:

mongodump -h apollo.modulusmongo.net -u root -p root --authenticationDatabase Es8ezygy --db Es8ezygy

When you enter the command in your CLI, it will look like this:

Refer to this article for more details on performing a mongodump.

Register for MongoDB Atlas

You can register an account for MongoDB Atlas here.

Once you register an account, create a 'add new cluster.'

There will be several options when creating the new cluster.
A 'free' database can be set up here, just note that the 'free' tier database it is not meant for production applications.

Once you have created your new cluster (it takes 5 to 10 minutes for it to be ready) you can look at the 'connect' options to the far right of the 'clusters' part of the dashboard.

The connect menu / window will appear. In the whitelist section at the top of this 'connect' window select 'add entry.' You will want to add your IP address here.

Further down the connection string will be listed.
In the example below I am just using the first part of the connection string on MongoDB Atlas.

Example MongoRestore command:

$ mongorestore --host biscuitz3-shard-00-00-ezpze.mongodb.net --authenticationDatabase admin --ssl --port 27017 -u root --password root --db biscuits --noIndexRestore ~/dump/ace6Kepy

Contact Us

    Our Support Policy
    Submit a Support Request

  • Public Cloud Support Hours
    9am-5pm EST Mon-Fri
    Outside of these hours response times may be up to 24hrs.

    Submit a support ticket by clicking 'status and support' icon on the left side of this page.

seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found