{"id":15451039,"url":"https://github.com/schollz/github-backup","last_synced_at":"2025-04-19T23:34:17.754Z","repository":{"id":147335249,"uuid":"289090946","full_name":"schollz/github-backup","owner":"schollz","description":"Backup all the repos from Github using the official API","archived":false,"fork":false,"pushed_at":"2020-08-21T15:21:53.000Z","size":8,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T23:34:08.635Z","etag":null,"topics":["backup","backup-script","github-backup"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schollz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-20T19:18:03.000Z","updated_at":"2022-10-09T07:43:08.000Z","dependencies_parsed_at":"2023-04-19T14:48:08.653Z","dependency_job_id":null,"html_url":"https://github.com/schollz/github-backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fgithub-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fgithub-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fgithub-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fgithub-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schollz","download_url":"https://codeload.github.com/schollz/github-backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249830835,"owners_count":21331356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","backup-script","github-backup"],"created_at":"2024-10-01T21:21:10.079Z","updated_at":"2025-04-19T23:34:17.731Z","avatar_url":"https://github.com/schollz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-backup\n\nAs of [December, 2018](https://github.blog/2018-12-19-download-your-data/) you can download all your GitHub data with the click of a button. However, as of August 2020, this still won't work if you have too many repositories and will result in a unicorn page:\n\n![Death screen](https://user-images.githubusercontent.com/6550035/90820186-d52b6300-e2e5-11ea-9849-f06dc3377154.png)\n\nWhen I emailed support, they suggested to use [the official migration API](https://docs.github.com/en/rest/reference/migrations) to do the download.\n\nSo I wrote this python script to do just that. You can simply backup all the repos from Github using the official API.\n\n## Usage\n\nBefore you start, make sure to get a `\u003csecret token\u003e` that has admin priveleges, see [here](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token).\n\n```\n\u003e python -m pip install loguru click requests tqdm\n\u003e wget https://raw.githubusercontent.com/schollz/github-backup/master/github-backup.py\n\u003e python github-backup.py --user schollz --token \u003csecret token\u003e\n```\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschollz%2Fgithub-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschollz%2Fgithub-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschollz%2Fgithub-backup/lists"}