(Bulk)-Import of Nexus-Artefact-Repositories to a new Nexus server?

1,610 views
Skip to first unread message

Dan Steffen

unread,
Apr 1, 2016, 3:51:03 AM4/1/16
to Nexus Users
Hello,

we plan in our company to inquire some Artefact-Servers (Nexus, Artifactory, Archiva) to our new nexus 2.12.1-OSS-Server and I was thinking that is the best and easiest way to start with the Migration from an old nexus-2.11.4-Server to our new Server. At this point I pack the repositories I would like to migrate in the working directory of the old nexus-Server and unpack it in the new working directory but the new server didn't find the new repositories. That's why I have the question is there a documented way to migrate a Repository from one nexus server to another and of course from other artifact-Servertypes to nexus?

I would be for every hint very thanksful.
best regards
Dan

Anders Hammar

unread,
Apr 1, 2016, 4:25:59 AM4/1/16
to Dan Steffen, Nexus Users
The docs [1] covers migrating from Archiva and Artifactory to Nexus.


/Anders

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/6d354d68-96f1-43ce-a799-72091b23effe%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Dan Steffen

unread,
Apr 1, 2016, 5:06:09 AM4/1/16
to Nexus Users
Hello Aders,

the links helps a lot thank you. Maybe do you know a way to migrate from one nexus server to another too?
best regards
Dan

Anders Hammar

unread,
Apr 1, 2016, 5:25:10 AM4/1/16
to Nexus Users
the links helps a lot thank you. Maybe do you know a way to migrate from one nexus server to another too?

There used to be a blog post from Sonatype on this, but the link returns a 404 so it seems it has been lost unfortunately.
AFAIK it should work by copying the sonatype-work folder to the new server. As it contains config etc, Nexus will perform an upgrade if you then (on the new server) start with a newer version of Nexus.

If Nexus can't find the sonatype-work folder there must be something wrong in the nexus config. The most simple solution would probably be to keep the setup from your original installation, for which I assume you have documented any additional config you've done.

/Anders

 
best regards
Dan

Am Freitag, 1. April 2016 09:51:03 UTC+2 schrieb Dan Steffen:
Hello,

we plan in our company to inquire some Artefact-Servers (Nexus, Artifactory, Archiva) to our new nexus 2.12.1-OSS-Server and I was thinking that is the best and easiest way to start with the Migration from an old nexus-2.11.4-Server to our new Server. At this point I pack the repositories I would like to migrate in the working directory of the old nexus-Server and unpack it in the new working directory but the new server didn't find the new repositories. That's why I have the question is there a documented way to migrate a Repository from one nexus server to another and of course from other artifact-Servertypes to nexus?

I would be for every hint very thanksful.
best regards
Dan

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.

Dan Steffen

unread,
Apr 1, 2016, 5:33:27 AM4/1/16
to Nexus Users
Yes this post I found too and I try to copy a single Repository from one server to the new one but this don't work. Now I hope the is a function to "check" the working directory for new repository and add them to the others. Because the Problem is we have to merged multiple nexus Servers to the new one....


Am Freitag, 1. April 2016 09:51:03 UTC+2 schrieb Dan Steffen:

Brian Fox

unread,
Apr 1, 2016, 7:46:56 AM4/1/16
to Dan Steffen, Nexus Users

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.

Manfred Moser

unread,
Apr 1, 2016, 11:10:53 AM4/1/16
to Nexus Users, dan.ste...@googlemail.com
The migration chapter in the documentation also covers this.


and there are a couple of videos that demo it from Artifactory and Archiva as well that I recorded a while ago

They are part of the Tips from the Trenches series at 



Note that this approach applies to 2.x versions. 

For 3.x we have built a migration tool from 2.x that will be released soon and we plan to expand it to be able to pull in folders directly.

In the mean time I have an open source tool that can pull dependency trees from on repo (or repo server) to another. It could be expanded easily to pull in a repository on disk since it does exactly that during the dep tree process. You can find it here


hth

Manfred

Manfred Moser

unread,
Apr 1, 2016, 11:12:25 AM4/1/16
to Nexus Users, dan.ste...@googlemail.com
Also .. if you need to merge multiple repositories e.g. from multiple repository managers the easiest is to migrate the repository as they come and then use repository groups to manage them as a new unit. 

Manfred
Reply all
Reply to author
Forward
0 new messages