Ask HN: I don't want to rely on GitHub as the only storage of my opensource code

2 points | by 3dfan 505 days ago


  • aaronbrethorst 505 days ago

        git push backup master
    Where backup is a remote that exists literally anywhere else. Amazon, Gitlab, and Bitbucket are three choices that come to mind.
    • 3dfan 505 days ago

      Sure, I know how to push stuff somewhere.

      My question is more about the where. What is a good free service that is expected to stand the test of time?

      Maybe it's possible to make archive GitHub repos?

      • db48x 504 days ago

        Sure, you can use `git bundle` to export your repository to a file, then upload it to the archive. There's a nice command-line tool for doing the upload (, so you can easily script this so that it's automatic.

        • eesmith 505 days ago

          You wrote "At some point [GitHub] will go down like every other project does." Doesn't that mean you don't expect any good free service to stand the test of time?

          Just how long do you want?

          Perhaps if you pay for a service it's more likely that it will last?

          • 3dfan 505 days ago

            I don't expect any service to stand the test of time.

            So I want to spread my code across multiple services. And when one goes down in 10 years or so, clone it from one of the others to yet another one.

            Paying is not an option. Because I want a hassle free solution. Paid services would be prone to even more issues. For example when I change my credit card I would have to think about updating the CC information. At some point Credit Cards might go out of fashion. And the provider and I might not have a common payment channel anymore. Or the provier raises their fees to a level that I find too expensive.

            I want a solution that I can set up and then forget about it for as long as possible.

            • eesmith 505 days ago

              Then what's wrong with the three suggestions that aaronbrethorst gave?

              I'll add to my question of "Just how long do you want?" - how much data do you want to store, and how often do you want updates?

          • detaro 505 days ago

            Parent comment also mentions 3 "where"s. Sourceforge is another option.

        • karmakaze 504 days ago

          I would suggest using either GitHub or GitLab as primary and mirror on the other. I prefer the issue management of GitLab so use that as my primary.

          The top search result[0] are GitLab docs for pushing to or pulling from another repository for mirroring.


          • stephen82 504 days ago

            How about setting up your own server and use to host your projects there?

            • krapp 505 days ago

              >I don't want to host them locally. Too much of a hassle.

              No it isn't. Just buy an external drive or something and copy your repos to it, done and done.