1.備份
gitlab-rake gitlab:backup:create
默認(rèn)目錄: /var/opt/gitlab/backups
2.復(fù)制備份文件到新服務(wù)器目錄并賦權(quán):
chmod 777 *.tar
停止相關(guān)數(shù)據(jù)連接服務(wù)
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
3.恢復(fù):
gitlab-rake gitlab:backup:restore BACKUP=備份文件編號(hào)
重啟服務(wù): gitlab-ctl start