Nexus Database Migration: From OrientDB to H2

Nexus Database Migration: From OrientDB to H2

Smit DaveJuly 22, 2025
Share this article Nexus Database Migration: From OrientDB to H2 Nexus Database Migration: From OrientDB to H2 Nexus Database Migration: From OrientDB to H2

Table of Contents

    This document outlines the steps to migrate Nexus Repository Manager’s database from OrientDB to H2 using the Nexus DB Migrator Tool.

    The migration is necessary when switching from the default OrientDB to H2, which is more suitable for certain setups.

    To migrate to the H2 database in Nexus Repository, ensure you’re using version 3.70.0 or newer.

    Step 1: Backup Nexus Database via UI

    1. In the Nexus UI, navigate to:
    Admin > System > Tasks, then select “admin – backup OrientDB database” from the list.

    step1

    step1

    2. Run the Backup Task to create a backup (.bak) file.

    step1

    3. Save the .bak file to a dedicated folder.

    Step 2: Download Nexus DB Migrator Tool

    Download the Nexus DB Migrator Tool from the official link:
    Nexus DB Migrator Tool Download

    Step 3: Move .bak File and Migrator Tool to the Same Folder

    Move both the .bak file and the nexus-db-migrator-3.70.4-02.jar tool into a dedicated folder for migration.
    The .bak file is created in the backup folder specified during the task creation.

    Step 4: Run the Migrator Tool

    Once you have prepared your .bak backup files and the Nexus Database Migrator tool, the next step is to run the Nexus Database Migrator to migrate from OrientDB to H2.

    Command to Run the Migrator Tool

    If your backup files and the migrator tool are located in the same folder (e.g., /home/ubuntu/nexus-backups/), you can run the following command directly from that directory:

    java -Xmx8G -Xms8G -XX:+UseG1GC -XX:MaxDirectMemorySize=28672M -jar nexus-db-migrator-3.70.4-02.jar --migration_type=h2

    Step 5: Adjust Permissions and Ownership

    Ensure that the correct file permissions and ownership are set for the migration folder:

    sudo chown -R nexus:nexus /path/to/migrator/folder
    sudo chmod -R 755 /path/to/migrator/folder

    This ensures that Nexus has proper access to the files.

    Step 6: Start Nexus

    Finally, start Nexus. If using Docker, the following command will suffice:

    docker start nexus

    Ensure that Nexus is up and running after the migration is complete.

      Talk to an Expert

      100% confidential and secure
      Nexus Database Migration: From OrientDB to H2 Smit Dave

      DevOps Specialist | Server Wrangler-in-Chief Building pipelines, breaking builds, and acting like I knew the root cause all along. Fluent in YAML, Bash, and duct tape fixes. If it’s not automated, monitored, and version-controlled—I don’t touch it.

      Leave a Reply

      Your email address will not be published. Required fields are marked *