注:備份恢復的環(huán)境必須一致,gitlab版本必須一致
gitlab恢復備份文件:
1. 停止相關(guān)數(shù)據(jù)連接服務(wù):
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl status
2.通過備份文件進行恢復
gitlab-rake gitlab:backup:restore BACKUP=1510472027_2017_11_12_9.4.5
3.再次啟動gitlab
gitlab-ctl start
4.恢復完成后,check恢復狀態(tài)
gitlab-rake gitlab:check SANITIZE=true