Doing an inplace upgrade from RHEL7 to 8 which is hosting gitlab-ee via rpm.
My current process outline is based on the idea of performing a clean install on RHEL 8.
#Files below saved offline…
Generate backup (gitlab-backup create)
From /etc/gitalb copy ssl and trusted-certs directories, gitlab.rb, gitlab-secrets.json
It would be wrong to remove Gitlab. It’s not a part of any of the RHEL7 or RHEL8 repositories, so you should be able to do an in-place upgrade without having to remove Gitlab.
Alternatively, make sure you use the Gitlab Backup/Restore documentation and also ensure you have a backup of ``/etc/gitlab/gitlab.rband/etc/gitlab/gitlab-secrets.jsonand instead of attempting the in-place upgrade, copy the two above files to a safe places, along with the backup you just created that is under/var/opt/gitlab/backups. Then clean install your server with either RHEL8 or RHEL9. Install the same version of Gitlab that you had on your old server, then copy the two files to /etc/gitlab directory, and run gitlab-ctl reconfigure``` to get a basic empty installation of Gitlab running. Place the backup on the new server under /var/opt/gitlab/backups and then run the restore as per the Gitlab docs.