目 录CONTENT

文章目录

gitlab11.10.4导出与gitlab16.0.1导入测试

Administrator
2025-07-29 / 0 评论 / 3 点赞 / 28 阅读 / 0 字
温馨提示:
部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

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
    export
    • 注意事项
      • 导出范围
        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
enable

  • 导入
    import1
    import2
    import3

测试

  • 测试结果(成功)

    • 仓库可以正常访问
      repo
    • commits信息完整
      commits
    • 分支信息完整
      branch
    • tag信息完整
      tag
  • 测试结果(缺失)

    • mr缺失
      mr
    • issue缺失
      issue
    • 同username贡献缺失
      contributor
  • 总结
    尽管官方文档声称导出备份包含issues、commits、merge requests(MRs)、tags等内容,但在实际操作过程中,我们发现issues和merge requests(MRs)等数据项存在缺失现象。这可能是由于两个GitLab版本之间的差异过大所导致的。

3
  1. 支付宝打赏

    qrcode alipay
  2. 微信打赏

    qrcode weixin

评论区