如何备份所有 Nexus 3 工件? [英] How to backup all Nexus 3 artifacts?

查看:113
本文介绍了如何备份所有 Nexus 3 工件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何将所有(不是一两个指定的)工件从 Nexus 3 存储库下载到本地磁盘.在 Nexus 2 中,这很容易,因为所有内容都存储在磁盘上,我只需将所有工件同步到我的本地磁盘.

I was wondering how to download all (not one or two specified ones) artifacts from a Nexus 3 repo to local disk. In Nexus 2 it was easy since everything was stored on disk and I would just rsync all the artifacts to my local disk.

但在 Nexus 3 中,所有工件都存储在 OrientDB 中,我将不得不采取其他方式.在以某种方式获得完整列表后,我正在考虑按 http 下载它们.

But in Nexus 3 all artifacts are stored in the OrientDB and I will have to take an other route. I was thinking about downloading them per http after getting a complete list somehow.

有人知道如何执行这样的导出吗?

Does anybody has an idea on how to perform such an export?

推荐答案

我修改了以下groovy scirpt,可以使用API​​上传:https://gist.github.com/kellyrob99/2d1483828c5de0e41732327ded3ab224

I modified following groovy scirpt, which can be uploaded using the API: https://gist.github.com/kellyrob99/2d1483828c5de0e41732327ded3ab224

为了上传和执行脚本,我查看了示例:https://github.com/sonatype/nexus-book-examples/tree/nexus-3.x

To upload and execute the script I took a look at the examples: https://github.com/sonatype/nexus-book-examples/tree/nexus-3.x

这篇关于如何备份所有 Nexus 3 工件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆