gitlab
一、gitlab还原(环境:hht)
1、停止相关数据连接服务
gitlab-ctl stop unicorn
gitlab-ctl stop sidekip
2、修改备份目录
vi /etc/gitlab/gitlab.rd
gitlab_rails['backup-path']='/var/opt/gitlab/backups'
改为:gitlab_rails['backup-path']='/data/gitlab-data'
3、还原操作
gitlab-rake gitlab:backup:restore BACKUP=1657103388_2022_07_06_13.7.3(_gitlab_backup.tar后缀不用写)
4、重启服务
gitlab-ctl start