Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to migrate GitLab to a new server?

Tags:

gitlab

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 :(

like image 299
Fishy Avatar asked Jul 21 '15 08:07

Fishy


People also ask

What is GitLab migration?

The GitLab Migration+ package enables most companies to migrate their data from previous source code management systems and train their users and adminstrators with GitLab fundamentals.

How do I move a GitLab project to another project?

(On my version of Gitlab, if you click the button twice, you can download directly from the browser.) Then to import, on Gitlab, select the New button > New Project from the top bar. Then, select Import Project > Gitlab export. The UI screenshots above may change on future Gitlab versions.


1 Answers

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

like image 86
volker Avatar answered Oct 08 '22 08:10

volker