2018-12-18 11:28:13 +00:00
|
|
|
# Gitlab to Gitea migration script.
|
|
|
|
|
|
|
|
This script uses the Gitlab and Gitea API's to migrate all data from
|
|
|
|
Gitlab to Gitea.
|
|
|
|
|
|
|
|
This script support migrating the following data:
|
2018-12-25 09:32:31 +00:00
|
|
|
- Repositories & Wiki (fork status is lost)
|
2018-12-18 11:28:13 +00:00
|
|
|
- Milestones
|
|
|
|
- Labels
|
2018-12-18 11:28:56 +00:00
|
|
|
- Issues (no comments)
|
2018-12-25 09:32:31 +00:00
|
|
|
- Users (no profile pictures)
|
2018-12-18 11:28:13 +00:00
|
|
|
- Groups
|
2018-12-18 11:28:56 +00:00
|
|
|
- Public SSH keys
|
2018-12-18 11:28:13 +00:00
|
|
|
|
2020-06-24 12:53:09 +00:00
|
|
|
Tested with Gitlab Version 13.0.6 and Gitea Version 1.11.6.
|
|
|
|
|
2018-12-18 11:28:13 +00:00
|
|
|
## Usage
|
|
|
|
Change items in the config section of the script.
|
|
|
|
|
2019-12-16 10:17:08 +00:00
|
|
|
Install all dependencies via `python -m pip install -r requirements.txt` and
|
|
|
|
use python3 to execute the script.
|
2020-05-29 07:03:53 +00:00
|
|
|
|
|
|
|
### How to use with venv
|
|
|
|
To keep your local system clean, it might be helpful to store all Python dependencies in one folder.
|
|
|
|
Python provides a virtual environment package which can be used to accomplish this task.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
python3 -m venv migration-env
|
|
|
|
source migration-env/bin/activate
|
|
|
|
python3 -m pip install -r requirements.txt
|
|
|
|
```
|
|
|
|
|
|
|
|
Then start the migration script `python3 migrate.py`.
|