从7.6.2升级到8.0.5
1. 下载gitlab-8.0.5
wget http://mirrors.lifetoy.org/gitlab-ce/yum/el7/gitlab-ce-8.0.5-ce.0.el7.x86_64.rpm
2. 停止gitlab-7.6.2的各项服务,并备份
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx
gitlab-rake gitlab:backup:create # 备份
使用以上命令会在/var/opt/gitlab/backups
目录下创建一个名称类似为1448075888_gitlab_backup.tar
的压缩包, 这个压缩包就是Gitlab整个的完整部分, 其中开头的1448075888
是备份创建的日期.
3. 安装gitlab-8.0.5
rpm -Uvh gitlab-ce-8.0.5-ce.0.el6.x86_64.rpm
4. 配置和重启gitlab
gitlab-ctl reconfigure
gitlab-ctl restart
5. 恢复数据
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-rake gitlab:backup:restore BACKUP=1393513186
# 启动Gitlab
sudo gitlab-ctl start