以下就省略升级过程命令,直接贴升级后的截图:
升级到相同版本后,重新执行备份:
gitlab-rake gitlab:backup:create RAILS_ENV=production tar czf 2020_11_15_13.5.3_gitlab_conf.tar.gz /etc/gitlab
将备份的文件scp至目标机的相同位置中,执行还原即可(注意备份文件宿主):
tar zxf 2020_11_15_13.5.3_gitlab_conf.tar.gz \cp -frp etc/gitlab/* /etc/gitlab/ chown -R git.git /var/opt/gitlab/backups/ gitlab-rake gitlab:backup:restore BACKUP=1605770100_2020_11_13_13.5.3
页码: 1 2