Transfer a GitLab CE installation from one local server to another one.
For the migration to work, the old and new GitLab CE servers need the identical GitLab version installed.
On the old server, a full backup can be created like this:
sudo gitlab-backup create
This guide shows how to install GitLab CE on a Ubuntu 20.04 LTS for internal use. GitLab provides multple ways to install its software, but here the focus is on omnibus, which is in my opinion the easiest way to get started.
Add GitLab repository
Before we can start with the installation...
Preparation – Linux computer
First of all, a ssh key is required. Generate a key par with this command:
ssh-keygen -t rsa -b 4096 -C "email@example.com"
The key pair should be located here:
Copy the content of the public key file: id_rsa.pub.
Login with your user...