备份文件
gitlab-rake gitlab:backup:create
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx
gitlab-rake gitlab:backup:create # 备份
gitlab恢复数据
# 停止相关数据连接服务
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
# 从1393513186编号备份中恢复
gitlab-rake gitlab:backup:restore BACKUP=1486219173_2017_02_04
# 启动Gitlab
sudo gitlab-ctl start