# gitlab-migrator **Repository Path**: amrzs/gitlab-migrator ## Basic Information - **Project Name**: gitlab-migrator - **Description**: 使用GitLab-CE API进行数据迁移(9.5.4 --> 12.4.2) - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-09-26 - **Last Updated**: 2022-09-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GitLab Community Edition数据迁移 使用`gitlab-ce` API进行私有仓库数据迁移,从`9.5.4`迁至`12.4.2`。因版本不同,无法使用`gitlab-rake`工具进行`backup`/`restore`。 ## 配置 `src/config.py`: - `SOURCE`: 老版本GitLab地址(端口`80`)与访问令牌 - `TARGET`: 新版本GitLab(`test`/`prod`)地址与访问令牌 ## 迁移数据列表 - [X] Users - [X] Groups - [X] Group members - [X] Projects - [X] Repositories - [ ] Issues - [ ] Merge requests ## 用法 - 迁移 ``` sh $ python3 src/main.py [test | prod] ``` - 清除测试目标库中的数据 ``` sh $ python3 src/clean.py ```