---
title: "Export Database to a .ravendbdump file"
description: "Export a RavenDB database to a .ravendbdump file through Studio with options to include documents, indexes, identities, and compare-exchange."
url: "https://docs.ravendb.net/7.2/studio/database/tasks/export-database"
version: "7.2"
---

# Export Database to a .ravendbdump file

> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

## Export Database to a .ravendbdump file

> **Note**
>
> - Use the **Export Database** view to export data from your database to a `.ravendbdump` file.
>
> - `.ravendbdump` is RavenDB's format for exporting/importing a database, with backward compatibility
>   between RavenDB versions.
>
> - On a sharded database, data can be exported from all shards
>   into a `.ravendbdump` file.  
>   Read about exporting data from a sharded database in the
>   [section dedicated to this operation](https://docs.ravendb.net/7.2/sharding/import-and-export.md#export).
>
> - In this page:
>   - [Export Database View](#export-database-view)
>   - [Advanced Export Options](#advanced-export-options)

## Export Database View

The Export Database view allows you to select the data you want to export
and export it to a `.ravendbdump` file.

![Export Database View](https://docs.ravendb.net/assets/images/export-database-studio-view-22a54643fe3bd03a80d1ada732e0582d.png)

1. **Export Database View**  
   Click to open the Export Database view.

2. **Documents and Extensions**  
   Select the document entities you want to export.
   - [Attachments](https://docs.ravendb.net/7.2/document-extensions/attachments/overview.md)
   - [Counters](https://docs.ravendb.net/7.2/document-extensions/counters/overview.md)
   - [Time Series](https://docs.ravendb.net/7.2/document-extensions/timeseries/overview.md)
   - [Revisions](https://docs.ravendb.net/7.2/document-extensions/revisions/overview.md)

3. **Cluster Entities**  
   Select the cluster entities you want to export.
   - [Indexes](https://docs.ravendb.net/7.2/indexes/what-are-indexes.md)  
     You can remove [Analyzers](https://docs.ravendb.net/7.2/indexes/using-analyzers.md) from exported indexes.
   - [Identities](https://docs.ravendb.net/7.2/client-api/document-identifiers/working-with-document-identifiers.md)
   - [Compare Exchange](https://docs.ravendb.net/7.2/compare-exchange/overview.md)
   - [Subscriptions](https://docs.ravendb.net/7.2/data-subscriptions/overview.md)
   - [Configuration and Ongoing Tasks](https://docs.ravendb.net/7.2/studio/database/tasks/import-data/import-from-ravendb.md#customize-configuration-and-ongoing-tasks)

4. **Include Artificial Documents**  
   Toggle on to export [Artificial Documents](https://docs.ravendb.net/7.2/studio/database/indexes/create-map-reduce-index.md#artificial-documents--vs--regular-documents).

5. **Include Conflicts**  
   Toggle on to export [Conflicts](https://docs.ravendb.net/7.2/studio/database/documents/conflicts-view.md).

6. **Encrypt exported file**  
   Toggle on to encrypt the exported `.ravendbdump` file.  
   When enabled, you'll be able to provide the encryption key that will be used.  
   please **store the key in a safe place** so you can provide it when importing
   the stored file to decrypt the data.

   ![Provide Encryption Key](https://docs.ravendb.net/assets/images/export-encryption-key-a9800e634ec7af0c25c9e0ce1f55e986.png)

7. **Advanced**  
   Click to display [advanced export settings](#advanced-export-options).

8. **Export Database**  
   Click to export the selected data to a `.ravendbdump` file.

## Advanced Export Options

![Display Advanced Options](https://raw.githubusercontent.com/ravendb/docs/main/docs/studio/database/tasks/assets/export-display-advanced-settings.png)

Click to display the advanced export options.  
![Advanced Export Options](https://docs.ravendb.net/assets/images/export-advanced-settings-d00a070369d44bbf81991af9c1117fe2.png)

1. **Export all collections**  
   **Disable** to select the collections you want to export,  
   or keep **Enabled** to export all collections.

   ![Export collections](https://docs.ravendb.net/assets/images/export-database-advanced-collections-2665dfbe63a2f7625affbc38036d4f4d.png)

   - Use the **Filter** bar to display the collection whose name includes the specified string.

2. **Use Transform script**  
   Toggle on to enter a custom JavaScript that will be executed over each exported document.

   ![Transform Script](https://docs.ravendb.net/assets/images/export-database-advanced-transfrom-script-872fcc5856eb952c35c31f161a72c3fa.png)

   - Sample transform javascript:

```javascript
var id = doc['@metadata']['@id'];
if (id === 'orders/999')
throw 'skip'; // filter-out
```

3. **Customize Configuration and Ongoing Tasks**  
   Toggle on to choose the components to export more specifically.

   ![Figure 6. Advanced Export Options - Customize Configuration and Ongoing Tasks](https://docs.ravendb.net/assets/images/export-database-advanced-configuration-156ab2ffcacfa6c5d615fda10fe697e3.png)

4. **Export Command**  
   Click to create a **PowerShell**, **Cmd** or **Bash** command.  
   Running the command you created from the selected command line window will export your data
   as defined by your settings.

   ![PowerShell Command](https://docs.ravendb.net/assets/images/export-command-powershell-687549651cafef109bc48987dbdafb0c.png)

   **A**. Click the **Export Command** button and select the command line to prepare a command.  
   **B**. Click to copy the created export command to the clipboard.

5. **Close Advanced**  
   Click to close the advanced export options view.

6. **Export Database**  
   Click to export the selected data by your settings to a `.ravendbdump` file.
