Migration gitlab server

Hello all,

We are planning to migrate the gitlab server( version gitlab ce-15.2.0 ) centos to new server Amazon linux2023.

Noticed if we try backup and restore we need same version to restore

So checked for amazon Linux2023 server to install with same version and found that the packages on server starts gitab ce 16.3.0.amazon2023.

Is it we can’t migrate /restore the server on amazonlinux2023?

Anyone tried to migrate/restore to different gitlab version.

If we migrate the server , do we need to have same gitlab version?

You will have to upgrade your existing server from gitlab-ce-15.2.0 to gitlab-ce-16.3.0 and then take a backup and restore it to the new server.

I have no experience with either CentOS or amazon’s offer.

Yes - unless you really know what you’re doing (and you wouldn’t be asking here if you did).

The standard way would be what @iwalker says: Upgrade the existing server first. (And in case you’re wondering, the versions of GitLab you need that aren’t available on Amazon Linux 2023, are probably older than Amazon Linux 2023).

You don’t say which version of CentOS you’re on, but I know that they have discontinued some of their offering, so it might not be easy to upgrade on that platform. In that case you’ll have to find a distribution that 15.2 was packaged for, migrate to that, upgrade GitLab (possibly just to 16.3, but as far as possible is the standard advise), upgrade the OS (or migrate to yet another distro), and upgrade GitLab the rest of the way. You might (but as said: I have no experience with it) get away with using an old version of Amazon Linux (I can see some existed before the 2023 version), but if you’re not set on Amazon Linux, I would probably go with one of the larger ones, it’s far easier to get help then.