Migrating GitLab to Another Server

Image for post
Image for post
Illustration of GitLab Server Migration

Because of the policy of GITS Indonesia, we have to migrate the GitLab server to another server. In this case, we used the Google Cloud Platform Compute Engine for the new server.

When migrating GitLab to a new server, we might face much problems of in-compatible versions; different operating system (so needs different latest GitLab version); etc. There are two ways to migrate the GitLab. First way is to upgrade the old version to the same latest GitLab version, backup GitLab, and we can migrate to new server. The second way is to install GitLab on a new server with the same version as the old server. We choose the second way for the safety.

So, this is how to do it.

First, we create a new server on GCP with Ubuntu Server 18.04, meanwhile the old server still use Ubuntu Server 14.04. And the GitLab version that we use is 11.4.5.

On Old Server

On the old server, do these steps.

On New Server

On the new server, do these steps.

That’s it! It should be running well. If you have further question, you can leave your comment below.

Didiet A. Pambudiono is a Cloud explorer, FOSS enthusiast and contributor, also DevOps engineer at GITS Indonesia.

GITS Apps Insight

Journal about apps development for business and eCommerce…

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store