Gitlab使用备份文件进行恢复

注意:备份和恢复使用的Gitlab 版本必须一致

 

1、停止数据相关服务
gitlab-ctl stop unicorn gitlab-ctl stop sidekiq

2、还原
gitlab-rake gitlab:backup:restore BACKUP=/var/opt/gitlab/backups/1766668888_2020_06_29_13.1.0

3、启动服务
gitlab-ctl start

4、查看运行状态
gitlab-ctl status

 

 
posted @ 2020-06-29 16:41  画断封疆  阅读(127)  评论(0编辑  收藏  举报