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

 

 
原文地址:https://www.cnblogs.com/qq714644953/p/13208724.html