最新下载
热门教程
- 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版本需要一致
相关文章
- 大侠立志传一支花怎么结缘 一支花结缘流程攻略 12-06
- 星球重启迷雾异种角使用方法详解 12-06
- 胡桃工具箱官网入口分享 2024最新版本官网地址 12-06
- 大侠立志传曼陀罗怎么结缘 曼陀罗结缘攻略 12-06
- 大侠立志传华青青怎么结缘 华青青结缘攻略 12-06
- 魔兽世界怀旧服Plus灰谷之战声望军需官位置分享 12-06