Import from Other Databases
-
You can import your existing NoSQL Databases to an empty RavenDB database.
-
Currently supported:
- MongoDB
- CosmosDB
-
You can import all collections, or select specific collections to import.
-
In this page:
Before you start
To migrate data from your existing NoSQL database, you need to download an external tool called Raven.Migrator
.
The application is available at ravendb.net/downloads, in the TOOLS
package (see image below).
The Raven.Migrator
tool can be found in the downloaded Tools
folder.
Raven.Migrator Tool Download
Import from MongoDB
Tasks
-> Import Data
.
Import from MongoDB
-
Migrator Path
- Find
Raven.Migrator.exe
in the tools package here: ravendb.net/downloads - Provide a path to
Raven.Migrator.exe
's folder.
- Find
-
Database Source
- Select
MongoDB
- Select
-
Connection String
- Provide the connection string to your MongoDB instance.
-
Migrate GridFS
- Choosing this option will import GridFS attachments and save them as documents with attachments in the
@files
collection.
- Choosing this option will import GridFS attachments and save them as documents with attachments in the
-
Database Name
- Provide the name of the source database.
-
Migrate all collections
- You can either import all collections or select the collections you'd like to import.
- Optionally, you can rename the imported collections.
-
Use Transform script
- Use a JavaScript to filter / modify imported documents.
Import from CosmosDB
Tasks
-> Import Data
.
Import from CosmosDB
-
Migrator Path
- Find
Raven.Migrator.exe
in the tools package here: ravendb.net/downloads - Provide a path to
Raven.Migrator.exe
's folder.
- Find
-
Database Source
- Select
CosmosDB
- Select
-
Azure Endpoint URL
- Provide a URL to CosmosDB database
-
Primary Key
- Provide the Primary key for CosmosDB
-
Database Name
- Provide the source database name
-
Migrate all collections
- You can either import all collections or select the collections you'd like to import.
- Optionally, you can rename the imported collections.
-
Use Transform script
- Use a JavaScript to filter / modify imported documents.