# Migrate nexus artifacts and docker images from one nexus instance to another

**URL:** <https://community.sonatype.com/t/migrate-nexus-artifacts-and-docker-images-from-one-nexus-instance-to-another/830>\
**Category:** Sonatype Nexus Repository\
**Tags:** help, learn\
**Created:** [November 20, 2018, 10:57am UTC](https://community.sonatype.com/t/migrate-nexus-artifacts-and-docker-images-from-one-nexus-instance-to-another/830 "2018-11-20T10:57:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![faizan.ahmad55](https://avatars.discourse-cdn.com/v4/letter/f/9de0a6/32.png) [@faizan.ahmad55](https://community.sonatype.com/u/faizan.ahmad55)\
**Post date:** [November 20, 2018, 10:57am UTC](https://community.sonatype.com/t/migrate-nexus-artifacts-and-docker-images-from-one-nexus-instance-to-another/830/1 "2018-11-20T10:57:05Z")

</div>

Hi,  
I need help in migrating the nexus artifacts and docker images from one nexus instance to another instance we are currently using our private chart with this image sonatype/nexus3:3.6.0.

But now we have decided to use the public chart with this image

> **[Quay](https://quay.io/repository/travelaudience/docker-nexus?tab=tags&tag=3.13.0_alpine_3.8.1)**
>
> Quay is the best place to build, store, and distribute your containers. Public repositories are always free.

You can find the public chart here

> **[charts/stable/sonatype-nexus at master · helm/charts](https://github.com/helm/charts/tree/master/stable/sonatype-nexus)**
>
> master/stable/sonatype-nexus

The issue I’m facing is how to move the artifacts from our old instance to the new instance. I’ve found this old blog post that I’m not sure is working for Nexus 3 as few people have commented  
[https://blog.sonatype.com/2010/04/nexus-tip-moving-artifacts-between-nexus-repositories/](https://blog.sonatype.com/2010/04/nexus-tip-moving-artifacts-between-nexus-repositories/)

Can anyone please help me in this. Any guidance would be much apprieceted.

---

<div class="post-metadata">

**Author:** ![faizan.ahmad55](https://avatars.discourse-cdn.com/v4/letter/f/9de0a6/32.png) [@faizan.ahmad55](https://community.sonatype.com/u/faizan.ahmad55)\
**Post date:** [November 22, 2018, 5:11pm UTC](https://community.sonatype.com/t/migrate-nexus-artifacts-and-docker-images-from-one-nexus-instance-to-another/830/2 "2018-11-22T17:11:13Z")

</div>

Update:

I’ve tried this solution

> **[How to Upgrade Nexus Repository 3.0.2 to 3.1.0 or Later](https://support.sonatype.com/hc/en-us/articles/231723267-How-to-Upgrade-Nexus-Repository-3-0-2-to-3-1-0-or-Later)**
>
> These instructions are applicable if you are running Nexus Repository 3.0.0, 3.0.1, or 3.0.2.If you are upgrading from version 3.1.0 or later, please use these instructions instead.
> Before Upgradin...

And few others like this but it didn’t work. I tried by copying all data and also by copying only db and components directories, but it throws an exception on upgrade.  
I’m attaching logs for both scenarios,

1. Copy all data from old nexus instance to the new one.
2. Copy only the db directory

[Upgrade\_failed\_all\_data\_copy.pdf](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/1X/b90ac5e283fd4925112dd83df68584f334105b4c.pdf) (116.5 KB)  
[Upgrade\_failed\_copy\_db\_dir.pdf](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/1X/618713ba3ac4ed830821708e2d6938faf14e92db.pdf) (116.5 KB)

Can anyone please take a look. It is really important. Any help would be much appricieated.

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [November 26, 2018, 7:19pm UTC](https://community.sonatype.com/t/migrate-nexus-artifacts-and-docker-images-from-one-nexus-instance-to-another/830/3 "2018-11-26T19:19:53Z")

</div>

The article you just referenced is for upgrading very old nexus instances 3.0.x versions to newer versions. It’s not relevant to what you’re trying to do here.

You’ll need to relocate the entire work directory of the original server. See here:

> **[Moving a Nexus Repository 3 Instance to a New Location](https://support.sonatype.com/hc/en-us/articles/360010352014-Moving-a-Nexus-Repository-3-Instance-to-a-New-Location)**
>
> .This article provides best practice and considerations for moving an existing Nexus Repository 3 self-hosted standalone server to a new server location under these conditions:
> Standalone Repositor...

Rich

---

<div class="post-metadata">

**Author:** ![mohammedazhar7](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@mohammedazhar7](https://community.sonatype.com/u/mohammedazhar7)\
**Post date:** [July 14, 2020, 5:30pm UTC](https://community.sonatype.com/t/migrate-nexus-artifacts-and-docker-images-from-one-nexus-instance-to-another/830/4 "2020-07-14T17:30:10Z")

</div>

Hi,

I am trying to migrate docker images from one nexus Hosted repository to other using api.

Can some one provide me some update here

Thanks

---

<div class="post-metadata">

**Author:** ![vishwascse15](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vishwascse15](https://community.sonatype.com/u/vishwascse15)\
**Post date:** [February 4, 2021, 6:18am UTC](https://community.sonatype.com/t/migrate-nexus-artifacts-and-docker-images-from-one-nexus-instance-to-another/830/5 "2021-02-04T06:18:44Z")

</div>

Hey Mohammed,

Were you able to find a way to migrate docker images from one nexus to another nexus?

Thanks
