Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup (core) of NewPipe's organization #7996

Open
litetex opened this issue Mar 6, 2022 · 4 comments
Open

Backup (core) of NewPipe's organization #7996

litetex opened this issue Mar 6, 2022 · 4 comments
Labels
meta Related to the project but not strictly to code

Comments

@litetex
Copy link
Member

litetex commented Mar 6, 2022

I recently noticed that we don't have any kind of backup of our organization in case GitHub takes them down (#youtube-dl).

Also related to #1499.

What should be backed up

I think the following things should be backed up:

Repo Git Issues
https://github.com/TeamNewPipe/NewPipe ✔️ ✔️
https://github.com/TeamNewPipe/NewPipeExtractor ✔️ ✔️
https://github.com/TeamNewPipe/nanojson ✔️ ✖️
https://github.com/TeamNewPipe/website ✔️ ✔️
https://github.com/TeamNewPipe/documentation ✔️ ✖️ (nobody maintains these issues)
https://github.com/TeamNewPipe/team (private) ✖️ ✔️
https://github.com/TeamNewPipe/legal (private) ✖️ ✔️

Backup destination

For now I would target GitLab.com (→ https://gitlab.com/TeamNewPipe)

Backing up Git

Idea: Run once a week a full backup (with GH actions?) and push it to gitlab (override everything that is already there)

See also:

Backing up Issues

Idea: https://github.com/MichaelMure/git-bug

Requires a new repository.

Add 2 bridges:

  • One for GitHub - used for polling
  • One for GitLab - used for pushing

Sync changes e.g. once in a week

@litetex litetex added the meta Related to the project but not strictly to code label Mar 6, 2022
@litetex litetex self-assigned this Mar 6, 2022
@litetex litetex changed the title Backup (core) of NewPipe's organisation Backup (core) of NewPipe's organization Mar 6, 2022
@ktprograms
Copy link
Contributor

Why not use Codeberg or another Gitea instance?

IIRC gitlab.com uses GitLab EE, which isn't open source.

@litetex
Copy link
Member Author

litetex commented Mar 17, 2022

Status update:

  • git-bug doesn't allow to sync changes from one git hosting solution to another (e.g. I can't sync issues from GitHub to GitLab) - So it's off the list. It also stores data inside git itself which might be problematic when exporting it to other platforms. Maybe it's useable as a "secondary" backup.
  • The problem with Codeberg, Gitea and also GitLab is that they also don't allow syncing of issues and PRs.

→ Therefore the most likely solution will be a script that periodically imports the GitHub repo (+issues and PR) into Gitlab.

Why not use Codeberg or another Gitea instance?

  • Regarding Codeberg: Not my first choice as they are have mirroring turned off and have not as much market penetration as GitLab - Could be an option in the future.
  • Regarding Gitea: If I would have access to an instance this would also be possible. However setting up and maintaining an instance requires an not negligible amount of work and I don't think someone here has the will or can guarantee to do so for the next x years.

IIRC gitlab.com uses GitLab EE, which isn't open source.

As I'm just using the parts of GitLab that are also available on the CE edition, I see no harm here.

In case GitHub goes down and we want to use our own GitLab instance, we can still export the data from GitLab to our own instance or import it into Codeberg, Gitea, ...

@litetex
Copy link
Member Author

litetex commented Mar 19, 2022

Run an full import of everything last night into a test repository:
https://gitlab.com/n3490

Looks pretty good.
However I encountered some issues today:

  • Some people got mails despite the repo being archived.
    Sorry for the inconvenience → I disabled notifications inside the group now explictly:
  • Some issues are missing (see below)
  • The import of the NewPipe repository took forever (at least 1-2h)

Project import status:

GH GL Git
-Import
Issues
-Import
PR
-Import
https://github.com/TeamNewPipe/NewPipe https://gitlab.com/n3490/NewPipe/2022-03-18 ✔️ ❌ ~700 issues are missing ✔️
https://github.com/TeamNewPipe/NewPipeExtractor https://gitlab.com/n3490/NewPipeExtractor/2022-03-18 ✔️ ✔️ ✔️
https://github.com/TeamNewPipe/nanojson https://gitlab.com/n3490/nanojson/2022-03-18 ✔️ ✔️ ✔️
https://github.com/TeamNewPipe/website https://gitlab.com/n3490/website/2022-03-18 ✔️ ✔️ ✔️
https://github.com/TeamNewPipe/documentation https://gitlab.com/n3490/documentation/2022-03-18 ✔️ ✔️ ✔️
https://github.com/TeamNewPipe/team (private) https://gitlab.com/n3490/team/2022-03-18 ✔️ ✔️ ✔️
https://github.com/TeamNewPipe/legal (private) https://gitlab.com/n3490/legal/2022-03-18 ✔️ ✔️ ✔️

@litetex
Copy link
Member Author

litetex commented Mar 26, 2022

Did another import this week and there are even more issues missing (https://gitlab.com/n3490/newpipe/2022-03-21).

Not sure what is happening there exactly...

Related: https://gitlab.com/gitlab-org/gitlab/-/issues/32026

@litetex litetex removed their assignment Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Related to the project but not strictly to code
Projects
None yet
Development

No branches or pull requests

2 participants