最新消息:20210917 已从crifan.com换到crifan.org

【未解决】Gitlab中尝试用export和import实现git仓库的整体复制迁移

Import crifan 760浏览 0评论
折腾:
【未解决】Gitlab的旧git仓库迁移到新仓库且保留commit历史记录
期间,从:
import project
看到有很多选项支持
  • GitLab export
  • GitHub
  • Bitbucket Cloud
  • Bitbucket Server
  • GitLab.com
  • Google Code
  • Fogbugz
  • Gitea
  • Repo by URL
  • Manifest file
看起来,最接近的是:
GitLab export
或许需要先去把之前Gitlab参考 导出export ?此处再导入?
GitLab Import · GitLab
看到解释:
To move or copy an entire GitLab project from another GitLab installation to this one, navigate to the original project's settings page, generate an export file, and upload it here.
看起来是我们希望的
要回去之前项目,导出
切换到 settings
General · Settings · Data / data_xxx / AppCrawler · GitLab
看到底部的Advanced中写了:
Housekeeping, export, path, transfer, remove, archive.
有export导出
点击Expand
Export project

Export this project with all its related data in order to move your project to a new GitLab instance. Once the export is finished, you can import the file from the "New Project" page.
The following items will be exported:
* Project and wiki repositories
* Project uploads
* Project configuration, including services
* Issues with comments, merge requests with diffs and comments, labels, milestones, snippets, and other project entities
* LFS objects
* Issue Boards
The following items will NOT be exported:
* Job traces and artifacts
* Container registry images
* CI variables
* Webhooks
* Any encrypted tokens
Once the exported file is ready, you will receive a notification email with a download link, or you can download it from this page.
Export project
只是个提示:
Project export started. A download link will be sent by email.
那就只能等待邮件了。
都过去3小时了,还没收到邮件。
感觉是不是本身这个export有问题?
无意间再去后天看看,突然发现:
此处有个按钮:Download export
-》看来是:
早就export成功了。只不过邮件发现功能有问题,没收到邮件。
点击 Download export
看起来不太对啊。只有2MB?也太小了。
不像是完整的项目代码和其他数据啊
解压看看
  • lfs-objects.json
  • project.bundle
  • project.json
  • VERSION
算了,先直接去试试import是否OK。
点击导入
进入项目:
data_xxx / appcrawler · GitLab
稍等一下:
看到内容了:
很明显是:是个空项目。
不是我以为的,全部数据都能迁移过来的。
【总结】
所以此处通过Gitlab的export和import,并没有实现我们要的整体迁移git仓库的要求。
不知道是本身export和import出错了。还是本来就是这样,此处import后竟然导入的是一个空项目 。。。

转载请注明:在路上 » 【未解决】Gitlab中尝试用export和import实现git仓库的整体复制迁移

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
92 queries in 0.180 seconds, using 23.24MB memory