Search code examples
nexussonatypenexus3

Migrating Data from Nexus2 to Nexus3 via Upgrade Agent


based on the documentation to upgrade Nexus2 to Nexus3 we can use the Upgrade Agent but now I am wondering is it possible to use it for data migration, my use case is, I have already Nexus3 with data inside, for the other project we are using Nexus2 which now we want to move data to Nexus3, just wondering if migrating in this way cause some configuration issue or overriding blob in Nexus3.

Does anyone tried it for migrating data from one instance to already existed instance with data inside?


Solution

  • at the end I had to come with this solution as I am using the Nexus OSS.

    first download the target repository from Nexus 2

    wget --user user --password pass --recursive --no-parent http://NEXUS2-URL/nexus/content/repositories/maven-releases/
    

    then used this library to import them: https://github.com/AlexLiue/nexus-repository-import-scripts, it supports NuGet, Maven, NPM