Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing mongoDB dump to arangoDB

I need to import everything that exists in a particular database in mongoDB to arangoDB. I can dump the mongoDB data as:

mongodump -d "database_name" -u "user_name" -p "password"

Which will then dump the database to a dump folder.

Now I need to import this dump to my arangoDB database. How do I do this ?

like image 654
Prasanna Avatar asked Dec 06 '25 16:12

Prasanna


1 Answers

A method you can try is to first export your Mongo database into a JSON file as:

mongoexport --db databaseName --collection collectionName --out dump.json

Once you've obtained the JSON file you can try to import it into Arango using arangoimp

arangoimp --file dump.json --collection collectionName --create-collection true

References:

  • mongoexport
  • arangoimp

Let me know if you encounter problems.

like image 157
Divyanshu Maithani Avatar answered Dec 08 '25 08:12

Divyanshu Maithani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!