---
title: "Create a Database: From Legacy Files"
description: "Migrate data from RavenDB 3.x to the latest version by creating a new database from legacy data files using the Studio import wizard."
url: "https://docs.ravendb.net/7.2/studio/database/create-new-database/from-legacy-files"
version: "7.2"
---

# Create a Database: From Legacy Files

> 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."

## Create a Database: From Legacy Files

> **Note**
>
> This database creation option is designed for importing database from data files from RavenDB v3.x.
>
> - In this page:
>   - [1. Creating New Database From Legacy Files](#1-creating-new-database-from-legacy-files)
>   - [2. Data Source Configuration](#2-data-source-configuration)

## 1. Creating New Database From Legacy Files

![Figure 1. Create New Database From Legacy Files](https://docs.ravendb.net/assets/images/new-database-from-legacy-1-8cf5017a78f9eb04bae955dadf8f7e87.png)

> **Note**
>
> Open the down arrow and click `New database from legacy files`.

## 2. Data Source Configuration

![Figure 2. Create New Database From Legacy Files - Data Source Configuration](https://docs.ravendb.net/assets/images/new-database-from-legacy-2-321e2fab6c5efab4655e94e1fdbcb383.png)

1. [Database Name](https://docs.ravendb.net/7.2/studio/database/create-new-database/general-flow.md#2-database-name)

2. **Resource type**
   - RavenFS files will be saved as documents with attachments in @files collection.

3. **Data directory**
   - Absolute path to data directory.
   - Depending on used storage in 3.x version, this folder should contain the file:
     - Esent: Data / Data.ravenfs
     - Voron: Raven.voron

4. **Advanced source properties**

   ![Figure 3. Create New Database From Legacy Files - Advanced](https://docs.ravendb.net/assets/images/new-database-from-legacy-3-f1e8eeb58dc3252b75e15e88edf52aa1.png)

   - Journals directory: Use if custom path to journals / transaction logs was specified (value of 'Raven/TransactionJournalsPath' or 'Raven/Esent/LogsPath' 3.x setting)

   - Batch size: Size of documents / files batch when exporting from 3.x data (default: 1024)

   - Source bundles:

     - Compression: needs to be enabled if compression bundle was turned on

     - Encryption:

       You need to insert values of the following settings from 3.x resource:

       - Encryption key : 'Raven/Encryption/Key'

       - Encryption algorithm : 'Raven/Encryption/Algorithm'

       - Encryption key size : 'Raven/Encryption/KeyBitsPreference'

       ![Figure 4. Create New Database From Legacy Files - Encryption](https://docs.ravendb.net/assets/images/new-database-from-legacy-4-6c78c5b67a74719c0f11aee55410a2a0.png)

5. **Data Exporter**
   - RavenDB 3.5 tool that can be found on [ravendb.net](https://ravendb.net/download) as a part of the tools package.

> **Note**
>
> Note: The legacy database / file system will be migrated only to the current node, this database can be added to other nodes using the 'Manage group' button.
> Learn more about **Manage group** in : [Manage group](https://docs.ravendb.net/7.2/studio/database/settings/manage-database-group.md)
