For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

Migrate or Import Data

You can bring data from existing MongoDB deployments, JSON, or CSV files into deployments in Atlas using either:

  • live migration where Atlas assists you, or

  • tools for a self-guided migration of data from your existing deployments into Atlas.

Important

The feature described on this page is not currently supported on Atlas Infinite clusters during public preview. For the features supported in public preview, see Public Preview Availability.

Migrate your data from a source cluster into an Atlas MongoDB cluster using one of the following types of guided live migration in the Atlas UI:

Note

You can't migrate a cluster in a down state. The cluster running MongoDB must be operational for the live migration to Atlas to occur, as Atlas migrates one cluster member at a time, starting with secondary members and finalizing with the primary member. Ensure your cluster is running before attempting migration.

  • To load data into a new cluster in Atlas, see Load Sample Data.

  • To load external data into an Atlas Infinite cluster, see Load Data into an Atlas Infinite Cluster.

  • To make a copy of your cluster for testing purposes, see MongoDB Backup Methods.

  • To load data from a JSON or a CSV file into an Atlas cluster, use the Compass GUI .

  • To create backups and restore data, use the MongoCLI utilities mongorestore and mongodump.

  • To migrate from legacy relational databases to MongoDB, use the Relational Migrator tool. Relational Migrator utilizes intelligent algorithms and generative AI to automate solutions to common data modeling, code conversion, and other migration challenges.

  • To restore data from an Atlas cluster backup to another Atlas cluster, use Restore Your Cluster.

  • If the application that you want to migrate requires a near-continuous uptime, contact MongoDB Support and share your uptime requirements and cluster configuration.