一· 安装相同版本 Gitlab
参考
https://about.gitlab.com/install/
二. 将备份配置文件恢复
rsync -a etc/gitlab/* /etc/gitlab/ -v
gitlab-ctl reconfigure
三. 将备份数据文件恢复
cp xxxxxx_xxxx_xx_xx_12.7.6-ee_gitlab_backup.tar /var/opt/gitlab/backups/
chown git.git /var/opt/gitlab/backups/xxxxxx_xxxx_xx_xx_12.7.6-ee_gitlab_backup.tar
gitlab-backup restore BACKUP=xxxxxx_xxxx_xx_xx_12.7.6-ee
gitlab-ctl reconfigure
gitlab-ctl restart
gitlab-rake gitlab:check SANITIZE=true
参考文档:
https://docs.gitlab.com/ee/raketasks/backup_restore.html#restore-for-omnibus-gitlab-installations
网友评论