备份:
gitlab-rake gitlab:backup:create RAILS_ENV=production
备份路径:/var/opt/gitlab/backups,发送备份文件至对方节点备份路径下
恢复:
修改权限为777
cd /opt/gitlab/bin/
chmod 777 /var/opt/gitlab/backups/1505740476_2017_09_18_9.2.6_gitlab_backup.tar
gitlab-rake gitlab:backup:restore RAILS_ENV=production BACKUP=1505740476_2017_09_18_9.2.6
BACKUP应该等于_gitlab_backup.tar之前的部分