docker下的gitlab备份迁移

备份

修改配置文件

gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"

重新加载配置文件

gitlab-ctl reconfigure

创建备份

gitlab-rake gitlab:backup:create

恢复

停止相关服务

gitlab-ctl stop unicorn

gitlab-ctl stop sidekiq

执行备份恢复

gitlab-rake gitlab:backup:restore BACKUP=1569482945_2019_09_26_11.1.4

注意:恢复的BACKUP=后面是文件去掉_gitlab_backup.tar的名称

重启服务

service gitlab-ctl start

未经允许不得转载:高腾蛟 » docker下的gitlab备份迁移

赞 (0)
分享到:更多 ()

评论 0

评论前必须登录!

登陆 注册