zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

nexus备份恢复

备份 恢复 Nexus
2023-09-11 14:22:19 时间

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