Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrating my data from MongoDB Atlas

I've recently had a lot of weird usage between my MongoDB instance hosted on Atlas and my AWS instance hosting the application that uses the db. That's why i thought about hosting MongoDB on my own AWS server.

Since then i've tried to find tutorials on how to migrate my data from Atlas to my own setup, but haven't found anything but tutorials to migrate from something else to Atlas (which is obv not what i want)

Is there some standard way im just not seeing, being fairly inexperienced with the low level MongoDB stuff, or are they actively keeping this quiet?

I'd really appreciate some help because i'm hosting a hobby project and the most costs are created from network costs for moving data between my AWS instance and Atlas.

like image 232
Sebastian Di Luzio Avatar asked Nov 02 '25 04:11

Sebastian Di Luzio


1 Answers

I've recently had a lot of weird usage between my MongoDB instance hosted on Atlas and my AWS instance hosting the application that uses the db. That's why i thought about hosting MongoDB on my own AWS server.

In addition to the hourly hosting cost, MongoDB Atlas also passed on the cloud provider charges for data transfer traffic between cluster nodes. The data transfer includes: replica set monitoring, heartbeats, automation, and back-ups.

See also:

  • MongoDB Atlas Pricing
  • Billing: data transfer
  • Billing: backup

i'm hosting a hobby project and the most costs are created from network costs for moving data between my AWS instance and Atlas

Depending on your use case requirements, you can try MongoDB Atlas Free Tier instead. Note that this tier has lower specifications and some limitations compared to the paid tier.

To answer your question, you can export data from MongoDB Atlas using mongodump. See also:

  • Back Up and Restore with MongoDB Tools
  • Restore a Replica Set from MongoDB Backups

Alternatively, if you have enabled the continuous back-up feature, you can use MongoDB Atlas’s restore capabilities to generate a copy of your database for your own use, including seeding a new environment you manage yourself.

like image 105
Wan Bachtiar Avatar answered Nov 03 '25 20:11

Wan Bachtiar