News for hackers. Stuff that matters.
Re:Tell HN: GitHub will delete your private repo if you lose... by kitkat_new on Tuesday January 31, 2023 @06:52PM (#34604138)
I'll look for a tool that mirrors all my repositories (i.e. only forks). If I can't find one, I'll write it myself.
Re:Tell HN: GitHub will delete your private repo if you lose... by jmondi on Tuesday January 31, 2023 @07:52PM (#34604739)
I wrote a little tool to mirror my repositories to my gitea instance. It has been months to potentially a year or two since I ran this, but it does what you’re asking. You can mirror repositories of users and repos users have starred. It definitely needs some love.

https://github.com/jasonraimondi/deno-mirror-to-gitea

Re:Tell HN: GitHub will delete your private repo if you lose... by mckn1ght on Wednesday February 01, 2023 @08:05PM (#34620612)
I wrote a similar one I called Forgery that’s in a repo of the same name in my github account (which can be found in my user profile… just created this account and didn’t want to post a link in my first post, thought it might get automodded).

Very similar to yours, but also does forks, which I’m not sure yours does by a quick glance at your readme. Although, mine doesn’t automatically mirror from another forge, just clones everything locally. I’ll have to add a TODO to add mirroring.

Please have a look at how I handle them and consider adding a link to my project in your “similar tools” section, and I’ll do the same for you!

Re:Tell HN: GitHub will delete your private repo if you lose... by jmondi on Friday February 03, 2023 @06:49PM (#34649541)
If I remember correctly, I believe that mine will do forks also, they are just included in in your repositories.

I just looked over your project, and it seems pretty cool. A little bit different than mine, since mine is specifically github to a gitea mirror repository. I don't mind adding a link to your project in mine.

Thanks for sharing!

Re:Tell HN: GitHub will delete your private repo if you lose... by pabs3 on Tuesday January 31, 2023 @09:32PM (#34605596)
Re:Tell HN: GitHub will delete your private repo if you lose... by drudoo on Wednesday February 01, 2023 @09:34AM (#34610970)
This is build in to Gitea. I mirror multiple github repos to my private gitea instance.