1

There is an abundance of info about migrating TO Atlas but not too much I could find specifically about going the other direction.

I am migrating a collection which is 250GB in size. I have tried using mongodump from the remote EC2 server connecting to the Mongo Atlas instance however presumably due to the large collection size this keeps failing. I have also read that mongodump is not great for DBs of this size but I could be wrong.

I was able to download a backup .tar.gz file from Atlas and move this to the the remove server. The file contents are below.

Is it possible to restore these in to a fresh mongo setup on the EC2, or will these only work for the environment they were taken from?

Here are the files available in the backup:

enter image description here

ronnz
  • 9
  • 4

1 Answers1

1

These appear to be database files, if you move them to the Mongodb data path, then start the mongod process/service, should work.

If the database is not inside sharded clusters, you can use mongodump/mongorestore.