GITLAB服务器备份数据恢复
2021-05-12 本文已影响0人
乌龟壳里的童话世界
注:备份恢复的环境必须一致,gitlab版本必须一致
gitlab恢复备份文件:
1. 停止相关数据连接服务:
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恢复状态
gitlab-rake gitlab:check SANITIZE=true