最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
centos系统下gitlab备份的教程
时间:2022-06-30 21:08:10 编辑:袖梨 来源:一聚教程网
一、备份gitlab
1、备份命令
gitlab-rake gitlab:backup:create
2、配置文件修改备份目录
vim /etc/gitlab/gitlab.rb
gitlab_rails['backup_path'] = '/mnt/backups'
3、添加计划任务每天自动备份
0 2 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create
二、还原gitlab
1、还原命令
停止数据库连接服务
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
选择需要恢复的时间点
gitlab-rake gitlab:backup:restore BACKUP=1393513186
启动gitlab
sudo gitlab-ctl start
注:迁移的时候gitlab版本需要一致
相关文章
- 《弓箭传说2》新手玩法介绍 01-16
- 《地下城与勇士:起源》断桥烟雨多买多送活动内容一览 01-16
- 《差不多高手》醉拳龙技能特点分享 01-16
- 《鬼谷八荒》毕方尾羽解除限制道具推荐 01-16
- 《地下城与勇士:起源》阿拉德首次迎新春活动内容一览 01-16
- 《差不多高手》情圣技能特点分享 01-16