gitlab 升级
目前版本
10.7.3
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
重置gitlab root 密码
https://www.jianshu.com/p/15f15d422015
备份教程
https://www.cnblogs.com/lvjinlin/p/17979747
升级教程
https://www.jianshu.com/p/cf34aab10234
1.先备份数据
gitlab-rake gitlab:backup:create
2.重新安装新版本
最新的rpm包
wget https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-17.1.1-ce.0.el7.x86_64.rpm
wget https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.7.3-ce.0.el7.x86_64.rpm
wget https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.8.7-ce.0.el7.x86_64.rpm
gitlab-ce-10.8.7-ce.0.el7.x86_64.rpm
sudo rpm -ivh gitlab-ce-17.1.1-ce.0.el7.x86_64.rpm
3.导入恢复数据
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
cd /var/opt/gitlab/backups
gitlab-rake gitlab:backup:restore BACKUP=1530156812_2018_06_28_10.8.4
gitlab-rake gitlab:backup:restore BACKUP=1730969782_2024_11_07_10.7.3
4.升级
gitlab-ctl stop puma
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx
gitlab-ctl restart
rpm -Uvh gitlab-ce-10.8.7-ce.0.el7.x86_64.rpm