简体   繁体   English

如何将存储库从GitLab 7.9.0迁移到GitLab Community Edition 11.8.3?

[英]How can I migrate repositories from GitLab 7.9.0 to GitLab Community Edition 11.8.3?

I need to migrate 100 repositories from GitLab 7.9.0 to GitLab Community Edition 11.8.3. 我需要将100个存储库从GitLab 7.9.0迁移到GitLab Community Edition 11.8.3。 Can anyone help to do the same? 有人可以帮忙吗?

Thanks in advance... 提前致谢...

I used gitlab-rake gitlab:import:repos command to restore all repositories and which worked without any issues. 我使用gitlab-rake gitlab:import:repos命令来还原所有存储库,并且可以正常工作。 Reference: https://docs.gitlab.com/ee/raketasks/import.html 参考: https : //docs.gitlab.com/ee/raketasks/import.html

Old server (Source installation) 旧服务器(源安装)

tar -cvzf repositories_27-3-2019.tar.gz  -C /home/git/ ./repositories
scp repositories_27-3-2019.tar.gz sijo@10.10.10.178:/home/sijo

New server (Omnibus installation) 新服务器(Omnibus安装)

tar -xvf repositories_27-3-2019.tar.gz -C /var/opt/gitlab/git-data/
chown -R git:git /var/opt/gitlab/git-data/repositories_27-3-2019/

gitlab-rake gitlab:import:repos['/var/opt/gitlab/git-data/repositories_27-3-2019']

Note: Only repositories will get restored by using this command. 注意:使用此命令将仅还原存储库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将Gitorious迁移到gitlab存储库 - How to migrate gitorious to gitlab repositories 如何将仓库从gitlab迁移到已具有旧版本仓库的gihub? - How can I migrate a repo from gitlab to gihub which already has the old version of the repo? 如何将仓库从 github 迁移到 gitlab? - how to migrate repo from github to gitlab? 如何配置GitLab将存储库镜像到Gemfury? - How do I configure GitLab to mirror my repositories to Gemfury? 如何获得GitLab CI / CD作业以推送到外部存储库? - How can I get GitLab CI/CD jobs to push to external repositories? 将 git 存储库从 GitLab 转移到 GitHub - 我们可以,如何转移和陷阱(如果有的话)? - Transfer git repositories from GitLab to GitHub - can we, how to and pitfalls (if any)? 无法将大型仓库从gitlab迁移到github - Can't migrate large repo from gitlab to github 将多个 gitlab 存储库迁移到 github - 如何一次完成所有操作(而不是手动) - Migrate multiple gitlab repositories to github - how to do it all at once (instead of manually) 如何在一台服务器上使用 GitLab 并将所有存储库存储在另一台服务器上? - How can I use GitLab on one server and store all of the repositories on another? 从多个存储库移动到一个单一存储库(在 GitLab 上) - Move from multiple repositories to a monorepo (on GitLab)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM