To copy single repository from old instance to new

Thanks Matthew for your quick response, but is there any chance that only copy the artifacts from the old one to a new Nexus 3 installation? it is not possible for me at least do a previous upgrade from 1.x to 2.x since it is actually running in a very old version of Ubuntu and it is a production server (I feel like I got a bomb between my hands)

I know this is an older thread. But I had to upgrade the underlying os of my nexus 3 instance. I created a script to recreate my proxy repos.

But for the hosted ones I needed to copy over the assets.
I created a small go script that downloaded the assets from one instance. And uploaded them in the same structure to the second instance.

the script can be found here if any1 still has some usage for it:
https://gist.github.com/negast/8d4f8b6512c4835b2d62670fbf8bdc3f

I didn’t find a script that did this yet or something in the official docs.

Nexus Repository Manager 3 now has export and import tasks which you can use to move your hosted assets.

https://help.sonatype.com/repomanager3/system-configuration/tasks/repository-export

https://help.sonatype.com/repomanager3/system-configuration/tasks/repository-import

1 Like

Ah, the docs don’t indicate it but those import/export tasks are a pro-only feature.