备份
gitlab-rake gitlab:backup:create
在gitlab服务器上停止相关数据连接服务,命令如下:
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
恢复
/var/opt/gitlab/backups/
gitlab-rake gitlab:backup:restore BACKUP=备份版本号
恢复敏感文件
/etc/gitlab/gitlab.rb
/etc/gitlab/gitlab-secrets.json
重读配置
重启
gitlab-ctl start 启动时候报错,runsv not running
解决问题:
systemctl start gitlab-runsvdir.service