使用gitlab-ce
API进行私有仓库数据迁移,从9.5.4
迁至12.4.2
。因版本不同,无法使用gitlab-rake
工具进行backup
/restore
。
src/config.py
:
-
SOURCE
: 老版本GitLab地址(端口80
)与访问令牌 -
TARGET
: 新版本GitLab(test
/prod
)地址与访问令牌
- Users
- Groups
- Group members
- Projects
- Repositories
- Issues
- Merge requests
- 迁移
$ python3 src/main.py [test | prod]
- 清除测试目标库中的数据
$ python3 src/clean.py