Nexus 3.X(Maven仓库私服)仓库迁移与备份

 注意修改端口号:根目录/etc/nexus-default.properties,application-port=端口号

Linux


  • 仓库迁移

Nexus的构件仓库都保存在sonatype-work目录中,该目录的位置由nexus/conf/nexus.properties配置文件指定。
仓库迁移需要两个过程:备份和还原

  • 备份仓库

将sonatype-work文件夹整体备份即可。

  • 还原仓库

将备份好的sonatype-work文件拷贝到新的服务器中。然后修改nexus/conf/nexus.properties配置文件,重新指定仓库的目录。

Windows


  • 仓库迁移

Nexus的构件仓库都保存在sonatype-work目录中,该目录的位置由bin/nexus.vmoptions配置文件指定(Dkaraf.data)。
仓库迁移需要两个过程:备份和还原

  • 备份仓库

将sonatype-work文件夹整体备份即可。

  • 还原仓库

将备份好的sonatype-work文件拷贝到新的服务器中。然后修改bin/nexus.vmoptions配置文件,重新指定仓库的目录。

参考资料

https://blog.csdn.net/liumiaocn/article/details/90345130

https://help.sonatype.com/repomanager3/backup-and-restore/restore-exported-databases

https://help.sonatype.com/repomanager3/installation/directories

原文地址:https://www.cnblogs.com/nethrd/p/9554163.html