[配置备份地址]
修改/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