4 comments

  • aaronbrethorst 70 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 70 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.org archive GitHub repos?

      • db48x 70 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 (https://github.com/jjjake/internetarchive), so you can easily script this so that it's automatic.

        • eesmith 70 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 70 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 70 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 70 days ago

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

          • 70 days ago
            [deleted]
          • karmakaze 69 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.

            [0] https://www.google.com/search?q=github+gitlab+mirror

            • stephen82 70 days ago

              How about setting up your own server and use https://github.com/go-gitea/gitea to host your projects there?

              • krapp 70 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.