BitBucket to Gitea Repositories migration script
Find a file
Gianni 23d59cb987
Feature/private repos and bugfix (#1)
* use regex replace for invalid chars, import private correctly, reduce logging information. Import as import, not migration

* remove comment

* fix: regex for replacing project name at correct position

* print finished state

Co-authored-by: Gianni <g.montalto@sprinteins.com>
2022-03-16 16:17:19 +03:00
.gitignore Initial commit 2020-06-04 21:32:59 +03:00
LICENSE Initial commit 2020-06-04 21:32:59 +03:00
main.py Feature/private repos and bugfix (#1) 2022-03-16 16:17:19 +03:00
props.py Initial Commit 2020-06-04 21:35:23 +03:00
README.md Update README.md 2021-11-08 17:47:46 +03:00

BitBucket to Gitea migration tool.

Description

Simple script for all repos migration from BitBucket to Gitea.

Using

  • Create authentification token in bitbucket
  • Create authentification token in gitea
  • Create file props.py with parameters:
BitBucketURL='bitbucket url'
authTokenBB='bitbucket auth token'
GiteaURL='gitea url'
authTokenGitea='gitea auth token'
migrationUsername='user in BitBucket, that have access to all repositories'
migrationPassword='password'

run with python3 main.py

Problems and logging

See migration.log, that will be created on script run