最新下载
热门教程
- 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版本需要一致
相关文章
- 10天激活20万 华为走通的这条路,苹果小米三星都要跟 05-13
- 夸克网页版入口-夸克浏览器2026最新网页版登录 05-13
- 喜欢研究系统 注重规划和布局 《纪元 117》满足你的建造瘾 05-13
- 漫蛙漫画网最新版本下载-漫蛙漫画官方网站安装包下载入口 05-13
- 哪个平台购买游戏账号好 05-13
- 鸣潮3.4版本卡池介绍 05-13