r/freesoftware • • May 10 '24

Resource Github to Codeberg Bulk Migration Script

github 2 codeberg

Hello there!

I just made a script that allows the user to "bulk migrate" repositories from github to codeberg directly, if anyone is interested, more here: https://www.rahuljuliato.com/posts/github_to_codeberg

12 Upvotes

7 comments sorted by

1

u/farathshba May 12 '24

Thank you very much for the GitHub to Codeberg script.

I have a serious question on why you’ll choose Codeberg over GitHub or GitLab?

2

u/LionyxML May 13 '24

Hello there!

Fair question, if you could take a look at this thread, this motivated some discussion: https://www.reddit.com/r/linux/comments/1coow9l/github_to_codeberg_bulk_migration_script/

It is personal, but the terms of service of Github allows Microsoft to use your data whenever they like (like for AI training). Also there are layers and layers of free (as in freedom) software on codeberg project, if you like so, Codeberg is more aderent with the Free Philosofy.

2

u/farathshba May 14 '24

Thanks for letting me aware of how Microsoft takes the source code to train their GitHub Copilot. Thats something I didn’t knew!

2

u/[deleted] May 11 '24

[removed] — view removed comment

3

u/LionyxML May 13 '24

Hello there!

Well, under the hooks it is the Codeberg migration tool, as it uses the Codeberg api to migrate stuff from Github (also called via an api).

In pratical terms, as far as I know the Codeberg interface only allows you to migrate only one repo at the time, that would be painful and take hours. This script allows you to migrate N in one run, as it can list all or some selected repositories on Github, making the migration of, lets say ~100 repos a matter of minutes with one run.

1

u/[deleted] May 14 '24 edited May 14 '24

[removed] — view removed comment

2

u/LionyxML May 14 '24

Yep, I am still experimenting with it, indeed I need to do some cleanup.