cross-posted from: https://leminal.space/post/4761745

Shortly before the recent removal of Yuzu and Citra from Github, attempts were made to back up and archive both Github repos; it’s my understanding that these backups, forks, etc. are fairly incomplete, either lacking full Git history or lacking Pull Requests, issues, discussions, etc.

I’m wondering if folks here have information on how to perform thorough backups of public, hosted git repos (e.g. Github, Gitlab, Codeberg, etc.). I’d also like to automate this process if I can.

git clone --mirror is something I’ve looked into for a baseline, with backup-github-repo looking like a decent place to start for what isn’t covered by git clone.

The issues I can foresee:

  • Each platform builds its own tooling atop Git, like Issues and Pull Requests from Github
  • Automating this process might be tricky
  • Not having direct access/contributor permissions for the Git repos might complicate things, not sure

I’d appreciate any help you could provide.

  • mesamuneEnglish
    arrow-up
    4
    arrow-down
    0
    ·
    7 months ago
    link
    fedilink

    Gitlab has really good automated tools for the initial pull from GH to GL. I remember coming across some GitHub actions and ci/cd tools that auto push changes from one fork to another. The biggest issue is the bundled binaries. I dont remember seeing any automated tools for that.

    • Lunya \ she/it
      arrow-up
      5
      arrow-down
      0
      ·
      7 months ago
      link
      fedilink

      why would you make a new line in the middle of a sentence?

      • Rikj000English
        arrow-up
        3
        arrow-down
        4
        ·
        7 months ago
        link
        fedilink

        To improve readability on mobile

        • d3Xt3rM
          arrow-up
          13
          arrow-down
          0
          ·
          7 months ago
          link
          fedilink

          Why though? Mobiles can word-wrap just fine, you don’t need to manually do it.

        • atzanteolEnglish
          arrow-up
          5
          arrow-down
          0
          ·
          7 months ago
          link
          fedilink

          That was on purpose? I’m on mobile - it looks like bad copy/paste formatting or something.

          Mobile clients word wrap just fine.

        • Lunya \ she/it
          arrow-up
          3
          arrow-down
          0
          ·
          7 months ago
          link
          fedilink

          Unfortunately, it’s not easy to read on my phone either.

        • mesamuneEnglish
          arrow-up
          2
          arrow-down
          0
          ·
          7 months ago
          link
          fedilink

          Thanks it looks good on Jerboa

    • breadsmasherEnglish
      arrow-up
      1
      arrow-down
      0
      ·
      7 months ago
      link
      fedilink

      so this is future hopeful functionality for ForgeFed?

  • mesamuneEnglish
    arrow-up
    1
    arrow-down
    0
    ·
    7 months ago
    edit-2
    7 months ago
    link
    fedilink

    I know its been a while but I think I found a really good tool. https://forgejo.org/ I have a couple mirrors set up now. It even pulls in binaries and releases! Its pretty well made too, a fork of gitea.