You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What full command are you using and what is the expected behavior? This is probably due to a strange combination of command line arguments - and I will admit they are not as intuitive as they could be as features have been incrementally added.
I saw the described behavior with github-backup -t ${T} --starred --all-starred -o output/ whwright, however it does work if you include either --repositories or --all. This is because backing up any repository is gated behind those flags:
I've added --repositories and it backups both the starred AND mine repositories. I don't want to backup mine, I want to backup starred only. Is there a way?
Activity
josegonzalez commentedon Jan 29, 2024
Pull requests welcome.
whwright commentedon Jan 31, 2024
What full command are you using and what is the expected behavior? This is probably due to a strange combination of command line arguments - and I will admit they are not as intuitive as they could be as features have been incrementally added.
I saw the described behavior with
github-backup -t ${T} --starred --all-starred -o output/ whwright, however it does work if you include either--repositoriesor--all. This is because backing up any repository is gated behind those flags:python-github-backup/github_backup/github_backup.py
Line 978 in 53d2cee
andry81 commentedon Jun 3, 2024
@whwright I retested the latest and the result is the same. It does backup only the RestAPI response. And does not attempt to
git cloneanything.Log:
After that only the JSON file is existing:
Is that supposed to work like this?
whwright commentedon Jun 3, 2024
@andry81 as stated above I believe this will work if you include
--repositoriesor--allandry81 commentedon Jun 3, 2024
Seems
https://*****:x-oauth-basic@github.com/url prefix saves in the bare repository config which is not secure I think.andry81 commentedon Jun 3, 2024
I've added
--repositoriesand it backups both the starred AND mine repositories. I don't want to backup mine, I want to backup starred only. Is there a way?whwright commentedon Jun 14, 2024
Yeah that's true, I think it would be a reasonable change to backup starred repos with only
--all-starred. That would be an easy change.Iamrodos commentedon Dec 7, 2025
@josegonzalez this can be closed. Addressed by 6e2a7e5 in PR #461