Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to migrate nexus repo. How can I go about it, any pointers?

share|improve this question
Users also migrated automatically in your case, per @Nicolas solution? – Gnanam Apr 24 '13 at 5:28

As stated in the doco the data storage and config. is separated from the application.

This way you can just copy both the application directory (Something like /opt/nexus-oss-webapp-X.Y.Z/) and your data directory (/opt/sonatype-work/) to a new server without any trouble.

I suspect the only setting that you'll need to change before trying to restart it is the repository URL which can be done by editing sonatype-work/nexus/conf/nexus.xml.

I just moved my repo from a machine to another, and upgraded it from 1.8.x to 1.9.0 at the same time without any trouble.

share|improve this answer
The link to the documentation has changed and is now:… – Hbf Apr 17 '12 at 11:22
@NicolasGuillaumin: So Users are also migrated automatically as well? – Gnanam Apr 24 '13 at 5:25
Not sure about users, I'm using LDAP so I don't have local users. I would assume that they would be stored in the data folder as well. – Nicolas Guillaumin Aug 5 '13 at 6:19
and now the link is – Jim Feb 6 '15 at 16:56
This post… has a section on which folders to include in a backup and which to omit which I found quite useful. – Ashutosh Jindal Nov 5 '15 at 13:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.