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

Github-backup in 140 repository org backups nothing #198

Open
k8s-gpubuilder-markus opened this issue May 20, 2022 · 3 comments
Open

Github-backup in 140 repository org backups nothing #198

k8s-gpubuilder-markus opened this issue May 20, 2022 · 3 comments

Comments

@k8s-gpubuilder-markus
Copy link

github-backup prai-org -t _TOKEN_redacted --organization --private --all

2022-05-20T14:57:20.874: Backing up user prai-org to /home/mars/github_backup
2022-05-20T14:57:20.874: Requesting https://api.github.com/user?per_page=100&page=1
2022-05-20T14:57:21.094: Retrieving repositories
2022-05-20T14:57:21.095: Requesting https://api.github.com/orgs/prai-org/repos?per_page=100&page=1
2022-05-20T14:57:22.566: Requesting https://api.github.com/orgs/prai-org/repos?per_page=100&page=2
2022-05-20T14:57:23.295: Filtering repositories
2022-05-20T14:57:23.296: Backing up repositories
2022-05-20T14:57:23.296: Retrieving prai-org starred repositories
2022-05-20T14:57:23.296: Requesting https://api.github.com/users/prai-org/starred?per_page=100&page=1
2022-05-20T14:57:23.556: Writing 0 starred repositories to disk
2022-05-20T14:57:23.557: Retrieving prai-org watched repositories
2022-05-20T14:57:23.557: Requesting https://api.github.com/users/prai-org/subscriptions?per_page=100&page=1
2022-05-20T14:57:23.854: Writing 0 watched repositories to disk
2022-05-20T14:57:23.855: Retrieving prai-org-ai followers
2022-05-20T14:57:23.856: Requesting https://api.github.com/users/prai-org/followers?per_page=100&page=1
2022-05-20T14:57:24.117: Writing 0 followers to disk
2022-05-20T14:57:24.117: Retrieving prai-org following
2022-05-20T14:57:24.118: Requesting https://api.github.com/users/prai-org/following?per_page=100&page=1
2022-05-20T14:57:24.375: Writing 0 following to disk

This does a lot of nothing, a verbose flag would be important, why it is not backing up any of the 140 repositories.
A verbose flag (in my experience EVERY software needs it) would show what is being filtered and why it is just filtering everything, even when specifying --all

I'm a little confused, it says backing up user, but it actually means organization right? Because if I use the user instead of the org name, it can't find that.

@whwright
Copy link
Contributor

whwright commented Jun 2, 2022

It looks like there might be a bug with case sensitivity. Is the name of the organization all lowercase prai-org?

@fielding
Copy link

Just wanted to jump in and support @whwright's hypothesis. I was backing up my organizations and noticed the same thing, it is indeed case sensitive and matching how github shows it on the URL to the organization fixed the issue for me.

@matkoniecz
Copy link

I hit the same, turns out that I inverted streetcomplete and StreetComplete

Maybe it could show an error message "no such organization" or "no such repository" instead of showing logs that look like processing empty org?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants