Import data from .ravendbdump file
-
.ravendbdumpis RavenDB's format for exporting data into and out of files. -
A
.ravendbdumpfile can be used to migrate data from one database to another.
It is commonly used when a database is upgraded. -
An exported
.ravendbdumpfile can also migrate data from a non-sharded database into a sharded database.
Learn more in the section dedicated to this operation. -
In this article:
Import data from a file
If you have already exported a database, follow these steps in Studio when you are ready to import from the file.

-
Select the Tasks menu.
-
Open the Import data view.
-
From file tab.
Select the From file (.ravendbdump) tab to import from a database that was previously exported to a file. -
Overwrite warning.
Be aware that importing from a file will overwrite any existing documents and indexes that share the same IDs.
To avoid rewriting your data, you can create a new database and import into it. -
Select file.
Choose the exported.ravendbdumpfile that you want to import data from, by entering the file name or browsing your file system. -
Import options
Select the data to import from the file. See Import options below.
If you exported an encrypted file, enable Imported file is encrypted and provide the encryption key. -
Advanced
Present advanced import options. -
Import Database
Click to import the selected data.
Import options

Select the entities that you want to import:
| 1. Documents and Extensions | 2. Cluster Entities |
|---|---|
| Documents | Indexes |
| Attachments | Index history |
| Legacy attachments | Remove analyzers |
| Counters | Identities |
| Time series | Subscriptions |
| Revisions | Configuration and Ongoing Tasks |
| Artificial documents | Compare exchange items |
| Archived documents | Compare exchange tombstones |
| Expired documents | |
| Conflicts | |
| Document tombstones | |
| Time-series deleted ranges |
Options that are selected but have no matching items in the imported file are skipped during import.
3. Imported file is encrypted
Enable this option when importing from an encrypted file, and provide the decryption key.
Make sure that Encrypt exported file was enabled when exporting from the source database.
Advanced import options
Click Advanced to reveal the following options.

1. Import all collections

By default, all exported collections are imported.
To import only specific collections, disable Import all collections, enter the name of each collection that you want to import, and click Add collection.
Enter collection names exactly as they appear in the source database.
2. Use Transform script

Enable this option to provide a JavaScript transform script that runs on each document imported from the file.
The current document is available under the this variable.
The @change-vector, @id, and @last-modified metadata fields are not available to the script.
For example, use the following script to skip discontinued products and stamp every imported document with the time it was imported:
// Skip documents you don't want to import
// (throwing 'skip' filters the document out)
if (this.Discontinued === true) {
throw 'skip';
}
// Add or modify regular fields on the imported document
this.ImportedAt = new Date().toISOString();
3. Customize Configuration and Ongoing Tasks

Use this option to select ongoing tasks, configurations, and connection strings to import.
Selected options with no matching items in the imported file will be skipped during import.
| Ongoing tasks | Other | Connection Strings |
|---|---|---|
| Periodic backups | Settings | RavenDB connection strings |
| External replications | Conflict solver configuration | SQL connection strings |
| RavenDB ETLs | Client configuration | Snowflake connection strings |
| SQL ETLs | Revisions configuration | OLAP connection strings |
| Snowflake ETLs | Document refresh | Elasticsearch connection strings |
| OLAP ETLs | Document expiration | Queue connection strings (Kafka, RabbitMQ, Azure queue storage) |
| Elasticsearch ETLs | Documents compression | AI connection strings |
| Queue ETLs (Kafka, RabbitMQ, Azure queue storage) | Time series configuration | |
| Replication hubs | Custom sorters | |
| Replication sinks | Custom analyzers | |
| Embeddings Generation | PostgreSQL integration | |
| GenAI | AI agents | |
| Remote attachments |
Imported ongoing tasks are disabled by default.
4. Set Max Read Operations Per Second

Enable this option to set a maximum number of read operations per second for the import.
Capping this rate makes the import lighter on the server, leaving more capacity for other work running on the database while the import is in progress, at the cost of a slower import.
5. Import Command

Studio can generate a ready-to-run command that performs this same import from a command line, using the options you configured above.
This is useful for repeating the import later or running it from a script.
Select the format you need, PowerShell, Cmd, or Bash, then click the copy icon to copy the generated command to the clipboard.
The command uses curl to send your .ravendbdump file and the selected options to the database's import endpoint.
For example, the generated PowerShell command looks similar to this:
curl.exe -F 'importOptions={\"OperateOnTypes\":\"Documents,Indexes\",\"IncludeExpired\":true}' -F 'file=@.\Northwind.ravendbdump' http://127.0.0.1:8080/databases/Northwind/smuggler/import