I have Gitlab CE on my CentOS 7 server along with Jetbrains Teamcity. While updating TeamCity, it asked me to upgrade git to version higher than 2.1.0, because after the update it will not work with versions prior to 2.1.0. So I updated it as shown in [here][1]
after installation of a newer version of git (2.24.1), my Gitlab stopped working.
I think the step sudo yum remove git*
removed not only my git but binaries of my GitLab. Because now there is no bin
folder in /opt/gitlab/embedded/
path (where gitlab-ctl gitlab-rake etc were kept).
The automatic backups were not set up, the /var/opt/gitlab/backups/
folder is empty. How do I restore my GitLab, without losing my repositories and configurations?
PS this far I have backed up:
- /opt/gitlab -> /opt/gitlab-backupd
- /var/opt/gitlab -> /var/opt/gitlab-backupd
- /etc/gitlab -> /etc/gitlab-backupd
And I want to run yum install gitlab-ce
, but I'm afraid that I'll lose my repositories.
[1]: https://computingforgeeks.com/how-to-install-latest-version-of-git-git-2-x-on-centos-7/