GitLab备份与恢复

作者: 分类: git 时间: 2018-05-02 评论: 暂无评论

[配置备份地址]
修改/etc/gitlab/gitlab.rb

gitlab_rails['backup_path'] = '/home/backup'
gitlab-ctl reconfigure

[创建备份]

gitlab-rake gitlab:backup:create

[每天执行]
crontab -e 添加

0 0 * * * gitlab-rake gitlab:backup:create

[还原]

gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-rake gitlab:backup:restore BACKUP=1500809139
标签: none

订阅本站(RSS)

评论已关闭