最新下载
热门教程
- 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版本需要一致
相关文章
- 塞尔达传说王国之泪提马瓦卡神庙怎么过 05-07
- 奇迹暖暖沐光恩典怎么样 05-07
- 奇迹暖暖旧宴恩典怎么玩 05-07
- 以闪亮之名迟夜巡演怎么样 05-07
- Swrv币虚拟货币 05-07
- bzone交易平台 05-07