Data Migration
Migration to RavenDB 7.x
Starting with version 7.0, RavenDB incorporates the
NLog logging frmework and writes all log
data through it.
Logging settings applied in earlier RavenDB versions are respected by RavenDB 7.x,
and logging should continue by these settings without interference after the migration.
If you want to use NLog-specific features, though, you will have to address a different set
of settings that NLog requires.
You can learn more here about migration and the new logging system.
From RavenDB 7.0 on, the default HTTP compression algorithm is Zstd.
Earlier versions used Gzip.
-
If your current server version is
6.0or higher, the compression algorithm will present no problem while connecting it to a server of version7.0and migrating your data. -
If your current server version is
5.4or earlier, attempting to connect it to a server that uses theZstdcompression algorithm will fail.
For the connection to succeed, you need to:- Temporarily switch the target version
7.0server compression algorithm toGzip.
Do this by defining aRAVEN_HTTP_COMPRESSION_ALGORITHMenvironment variable on the7.0server machine and setting its value toGzip, and restarting the server. - Connect your current server to the new server and perform the migration.
- When the new server is updated, remove the environment variable and restart the server.
- Temporarily switch the target version
Migration from RavenDB 5.x to 6.x
- RavenDB
6.xsupports in-place data migration from RavenDB5.x. - RavenDB
5.xproduct licenses do not apply to RavenDB6.x.
To upgrade a valid5.xlicense to a RavenDB6.xlicense,
please use the License upgrade tool as explained here.
Please note that once upgraded, RavenDB 6.x cannot be downgraded to version 5.x,
and the migrated data will no longer be accessible via RavenDB 5.x.
Please create a backup of your data before migrating.
Migration from RavenDB 4.x to RavenDB 5.x and 6.x
- RavenDB
5.xsupports in-place data migration from RavenDB4.x.Upgrading directly from version
4.xto6.xis possible,
but it is recommended to upgrade RavenDB4.xto5.xfirst,
and then proceed with an upgrade from version5.xto6.x. - RavenDB
4.xproduct licenses do not apply to RavenDB6.x.
To upgrade a valid4.xlicense to a RavenDB6.xlicense,
please use the License upgrade tool as explained here.
Please note that once upgraded, RavenDB 6.x cannot be downgraded to version 4.x,
and data migrated to 5.x or 6.x will no longer be accessible via RavenDB 4.x.
Please create a backup of your data before migrating.
Migration from RavenDB 3.x
- The information above relates only to data migration from RavenDB
4.xto5.x/6.xand from5.xto6.x. - If you want to migrate your data from a RavenDB version earlier than
4.x,
please read the dedicated article here.
Migrating data into a sharded database
If you want to migrate your data to a sharded database (supported by RavenDB 6.0 and above),
please read the related article here.