如何将 GitLab 迁移到新服务器?

编程入门 行业动态 更新时间:2024-10-25 09:26:58
本文介绍了如何将 GitLab 迁移到新服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试将 GitLab 设置从 7.8.2 迁移到 7.12.2.我真的不知道该怎么做.我在 Ubuntu 14.04.2 上安装了一个新盒子.现在我真的很想导出旧的用户/组数据库并将其导入新服务器,然后将所有存储库从旧服务器复制到新服务器.并告诉用户开始使用新的.

我不知道我的新 gitlab 安装使用哪个数据库,旧的也不知道.

我翻遍了 gitlab 文档,但找不到关于如何从一台服务器迁移到另一台服务器的足够信息.

我按照 about.gitlab/downloads/ 上的说明操作 ubuntu,一切似乎都很好.我正在寻找一种从旧 gitlab 盒子中导出用户/组并将其导入新 gitlab 盒子的方法.然后只需将所有存储库从旧盒子复制到新盒子.

有什么帮助吗?我对 gitlab 几乎一无所知 :(

解决方案

我会采取以下步骤

  • 了解 gitlab 是手动安装的还是使用 gitlab-omnibus 安装的.您需要了解确切的备份和更新步骤.
  • 为安全起见备份旧版本
  • 按照更新指南将当前的 7.8.2 实例更新为 7.12.2 实例
  • 备份新更新的gitlab系统
  • 在新系统上恢复备份
  • 备份与可以在 这里找到恢复文档/p>

    I am trying to migrate an GitLab setup from 7.8.2 to 7.12.2. I am not really sure how to go about this. I have installed a new box, on Ubuntu 14.04.2. Now I would really like to just export the old user/group database and import it on the new server, then copy all the repositories from the old server to the new one. And tell the users to start using the new one.

    I do not know which database my new gitlab installation uses, neither the old one.

    I have been up and down the gitlab documentation, but cannot find sufficient information on how to migrate from one server to another.

    I followed the instructions on about.gitlab/downloads/ for ubuntu, and all seems to work fine. I am looking for a way to export the users/groups from the old gitlab box and import it on the new gitlab box. and then just copy all the repositories from the old box to the new one.

    Any assistance? I know next to nothing about gitlab :(

    解决方案

    I would take the following steps

  • Find out if gitlab is installed by hand or with gitlab-omnibus. This you need to know for the exact backup and update steps.
  • Do a backup of the old version just to be safe
  • Update the current 7.8.2 instance to 7.12.2 instance by following the update guideline
  • Back up the newly updated gitlab system
  • Restore the backup on the new system
  • Backup & restore documentation can be found here

    更多推荐

    如何将 GitLab 迁移到新服务器?

    本文发布于:2023-11-28 12:56:30,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1642494.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:如何将   到新   服务器   GitLab

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!