You could try:
- Install gitlab-ce 15.6.2 on new server (has to be same version as existing install).
- Copy /opt/gitlab, /var/opt/gitlab, /var/log/gitlab, /etc/gitlab to the new server, overwriting what you just installed in point 1. Make sure if you copy to ensure permissions are also copied - rsync would be good using the -a flag.
- Once gitlab.rb and gitlab-secrets.json are in /etc/gitlab, you can then try
gitlab-ctl reconfigure
Not sure if that would be possible, but it’s worth trying anyway just in case.