CentOS上恢复GitLab数据的步骤如下:
sudo gitlab-ctl stop unicorn sudo gitlab-ctl stop sidekiq
TIMESTAMP_gitlab_backup.tar
)复制到/var/opt/gitlab/backups
目录。sudo gitlab-rake gitlab:backup:restore BACKUP=备份文件时间戳
恢复时会提示覆盖数据,输入yes
确认。sudo gitlab-ctl reconfigure sudo gitlab-ctl start
注意事项: