gitlab11.10.4导出与gitlab16.0.1导入测试
环境准备
- docker搭建gitlab11.10.4
- 模拟11.10.4的GitLab环境中的用户权限管控与Git操作
- 虚拟机安装gitlab16.0.1
参考张师傅其他文章
在11.10.4中导出备份
- 路径:某个仓库的
Settings
->General
->export project
- 注意事项
- 导出范围
The following items will be exported: Project and wiki repositories Project uploads Project configuration, including services Issues with comments, merge requests with diffs and comments, labels, milestones, snippets, and other project entities LFS objects The following items will NOT be exported: Job traces and artifacts Container registry images CI variables Webhooks Any encrypted tokens
- 生成时间
在此界面过几分钟后刷新,会出现download export
,会生成一个tar.gz
文件。
- 导出范围
- 注意事项
在16.0.1中导入备份
默认情况下,在16.0.1中导入备份,会提示Contact an administrator to enable options for importing your project.
需要用管理员账户登录,在Admin area
->Settings
->General
中勾选Enable import/export features for projects and groups
- 导入
测试
-
测试结果(成功)
- 仓库可以正常访问
- commits信息完整
- 分支信息完整
- tag信息完整
- 仓库可以正常访问
-
测试结果(缺失)
- mr缺失
- issue缺失
- 同username贡献缺失
- mr缺失
-
总结
尽管官方文档声称导出备份包含issues、commits、merge requests(MRs)、tags
等内容,但在实际操作过程中,我们发现issues和merge requests(MRs)等数据项存在缺失现象。这可能是由于两个GitLab版本之间的差异过大所导致的。
评论区