Hello,
As a Linux administrator first and foremost, and knowing little about the Git/Gitlab environment, I need to migrate our Gitlab installation to a new Linux platform, in this case from CentOS to Debian…
The current server hasn’t benefited from regular OS upgrades, and even less from regular upgrades for its Gitlab part…
I’m not sure what’s the best way to proceed!
current Linux version: CentOS Linux release 7.3.1611 (Core)
current Gitlab version: GitLab Community Edition 11.0.1
desired versions after migration
Linux version: Debian 12
Gitlab version: latest available
1st option considered:
- yum update on the current linux version.
yum update returns the following available version: gitlab-ce x86_64 16.11.2-ce.0.el7 gitlab_official
Which would suit me perfectly!
That said, given the obsolescence of the server and the Gitlab version currently in use, the yum command returns a substantial number and size of packages to be updated:
Transaction Summary
=============================================================================Install 12 Packages (+52 Dependent packages)
Upgrade 409 Packages
Remove 1 PackageTotal download size: 1.3 G
Having read a lot of documentation about failed Gitlab upgrades, do you think I can jump from Gitlab version 11.0.1 to version 16.11 without problems ?
The Gitlab documentation in any case recommends a gradual upgrade, but not a jump from several versions in a single upgrade!
What’s more, given that the Linux distribution currently in use (CentOS) is obsolete and being discontinued by its vendor, a package upgrade seems rather risky to me… (there are errors during the “yum update” attempt…)
2nd option considered:
full backup (using the tools provided by Gitlab) of the current configuration, according to available documentation, for example:
- installation of the new Debian server version 12
- installation of the Gitlab version identical to the one installed on the old server (GitLab Community Edition 11.0.1)
- restore the Gitlab backup previously performed on the CentOS server
- then progressive upgrade from Gitlab 11.x to 16.x
Potential problems:
- there will most likely be compatibility problems installing Gitlab version 11 on a Debian 12 server
- Will the Gitlab backup performed on CentOS be fully compatible with a Gitlab installation on a Debian server ?
Are the 2 steps proposed above coherent and potentially feasible?
thank you in advance for your patience in reading this far… and I wish you an excellent day !
Jean