本文介绍了如何将 GitLab 迁移到新服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

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

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

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

解决方案

我会采取以下步骤

  1. 了解 gitlab 是手动安装的还是使用 gitlab-omnibus 安装的.您需要了解确切的备份和更新步骤.
  2. 为安全起见备份旧版本
  3. 按照更新指南将当前的 7.8.2 实例更新为 7.12.2 实例
  4. 备份新更新的gitlab系统
  5. 在新系统上恢复备份

备份与可以在 这里找到恢复文档/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 https://about.gitlab.com/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

  1. Find out if gitlab is installed by hand or with gitlab-omnibus. This you need to know for the exact backup and update steps.
  2. Do a backup of the old version just to be safe
  3. Update the current 7.8.2 instance to 7.12.2 instance by following the update guideline
  4. Back up the newly updated gitlab system
  5. Restore the backup on the new system

Backup & restore documentation can be found here

这篇关于如何将 GitLab 迁移到新服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 01:55