最新下载
热门教程
- 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版本需要一致
相关文章
- 奥比岛梦想国度卡死闪退有哪些解决方法 04-30
- DNF手游骨戒在哪个位置 04-30
- 回望羊驼:当利空成为短暂的财富密码 04-30
- 为什么每个 Web3 项目都逃不过 DEX? 04-30
- HashKey Exchange 虚拟资产保险覆盖规模登顶全球第一 04-30
- HTX DeepThink:冲上$95,000后,等待比特币的是什么? 04-30