美文网首页Nexus OSS
三、Nexus的存储:Blob Stores的相关知识

三、Nexus的存储:Blob Stores的相关知识

作者: 闻风竹窗 | 来源:发表于2018-06-19 10:27 被阅读0次

1、BlobStore基础知识


本部分内容参考官网
https://help.sonatype.com/display/NXRM3/Backup+and+Restore

https://help.sonatype.com/display/NXRM3/Repository+Management#RepositoryManagement-BlobStores


登录Nexus 可以查看设置页面有Blob Stores的选项。


界面.png

点击后可以查看现有Blob Stores的信息(包括Type、Blob数目、现有文件夹的大小,可用空间的大小)、新建Blob Stores。


Image 3.png

1、Blob Stores属性

blob stores可以被一个或者多个仓库组使用。默认的Blob stores是基于文件系统的。可以简单的理解为一个文件夹。Blob Stores参数如下:
Name:Blob Store的名称,唯一。
the name of the blob store as displayed in the repository administration
Type:类型,一般为File
the type of the blob store backend; currently only File is available representing a file system-based storage
Blob count:Blob数目
the number of blobs currently stored
Total size:现有文件夹的大小
the size of the blob store
Available space:可用空间
the overall space available for the blob store

2、新建Blob Store

Type默认File、Name唯一、Path选择已有的文件夹。如果需要存储到指定的路径,请新建目录。


image.png

一旦创建了blob store,就不可修改类型和名称。而且,该blob store被仓库或者仓库组使用后,都不可以被删除。一个仓库只可以使用一个Blob Store,一个Blob Store可以对应多个仓库。Blob store的大小为Path对应的文件夹的大小。

3、为Repository绑定Blob Store

在新建Repository的时候可以绑定到已有的Blob Store。一旦Repository创建完成就不可以再变更Blob Store

image.png

其他

Nexus对于Maven、Yum、Docker、Npm、Python都支持hosted和proxy的仓库。如果考虑到备份hosted,那么可以将hosted仓库对应一个blob store,这样我们在备份的时候只需要备份hosted文件夹和配置文件即可。

相关文章

网友评论

    本文标题:三、Nexus的存储:Blob Stores的相关知识

    本文链接:https://www.haomeiwen.com/subject/nxxaeftx.html