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 Issues/PRs for projects hosted in https://github.com/sagemath/ #34624

Open
mkoeppe opened this issue Oct 1, 2022 · 5 comments
Open

Backup Issues/PRs for projects hosted in https://github.com/sagemath/ #34624

mkoeppe opened this issue Oct 1, 2022 · 5 comments

Comments

@mkoeppe
Copy link
Member

mkoeppe commented Oct 1, 2022

(from https://groups.google.com/g/sage-devel/c/hX6ojxlNwOU/m/r88PtBMTBQAJ)

We set up such backups for the projects that are already hosted at https://github.com/sagemath/:
In particular:

Available technologies:

We should have the backup running before making the proposed migration of sage development from Trac to GH (#30363). We should also refrain from using features of github not supported by our backup tool.

CC: @dimpase @tobiasdiez @kliem @mezzarobba @videlec @jhpalmieri @nbruin @sagetrac-tmonteil

Component: website/wiki

Issue created by migration from https://trac.sagemath.org/ticket/34624

@mkoeppe mkoeppe added this to the sage-9.8 milestone Oct 1, 2022
@mkoeppe
Copy link
Member Author

mkoeppe commented Oct 2, 2022

comment:1

https://github.com/josegonzalez/python-github-backup looks fine to me and would be trivial to use in a cron job.

Would a friendly academic hosting volunteer please step up and take care of this?

@mezzarobba
Copy link
Member

comment:2

I just played a bit with ​https://github.com/josegonzalez/python-github-backup and it stops after failing to download hooks for the first repository. After a quick and dirty patch

diff --git a/github_backup/github_backup.py b/github_backup/github_backup.py
index 873a40c..e2dcd6e 100644
--- a/github_backup/github_backup.py
+++ b/github_backup/github_backup.py
@@ -1012,7 +1012,7 @@ def backup_hooks(args, repo_cwd, repository, repos_template):
                      template,
                      output_file,
                      hook_cwd)
-    except SystemExit:
+    except (SystemExit, Exception):
         log_info("Unable to read hooks, skipping")

it works better, but a look at the issues list suggests it still does not backup everything. In am concerned in particular about

@mezzarobba
Copy link
Member

comment:3

Regardubg joeyh's github-backup, I missed that: https://joeyh.name/blog/entry/Withrawing_github-backup/

@mezzarobba
Copy link
Member

comment:4

I now have disk space on a system on which I could set up incremental backups of the github organization using python-github-backup. However, I can provide absolutely no guarantee that the backups will be reliable or complete, nor can I easily give access to that system to other people. (I suppose I could serve the backups by http if necessary, but that's about the best I can do.)

So it would be nice if someone else would independently set up backups using the other method discussed above (the github migration API). Note that one apparently needs “owner” permissions on the organization to use the migration API.

@mkoeppe
Copy link
Member Author

mkoeppe commented Jan 2, 2023

comment:5

Replying to Marc Mezzarobba:

it would be nice if someone else would independently set up backups using the other method discussed above (the github migration API). Note that one apparently needs “owner” permissions on the organization to use the migration API.

I'll do this in sagemath/trac-to-github#82

@mkoeppe mkoeppe modified the milestones: sage-9.8, sage-9.9 Feb 11, 2023
@mkoeppe mkoeppe removed this from the sage-10.0 milestone Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants