{"id":17995093,"url":"https://github.com/p0dalirius/githubbackupallrepos","last_synced_at":"2025-09-03T16:32:49.247Z","repository":{"id":41381662,"uuid":"446803797","full_name":"p0dalirius/GithubBackupAllRepos","owner":"p0dalirius","description":"A Python script to backup all repos (public or private) of a user.","archived":false,"fork":false,"pushed_at":"2023-10-02T11:44:58.000Z","size":247,"stargazers_count":17,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-18T18:50:10.487Z","etag":null,"topics":["backup","crontab","github","python"],"latest_commit_sha":null,"homepage":"https://podalirius.net/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p0dalirius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"p0dalirius","patreon":"Podalirius"}},"created_at":"2022-01-11T12:03:09.000Z","updated_at":"2024-08-12T20:19:39.000Z","dependencies_parsed_at":"2024-10-29T20:44:25.259Z","dependency_job_id":null,"html_url":"https://github.com/p0dalirius/GithubBackupAllRepos","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FGithubBackupAllRepos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FGithubBackupAllRepos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FGithubBackupAllRepos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FGithubBackupAllRepos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p0dalirius","download_url":"https://codeload.github.com/p0dalirius/GithubBackupAllRepos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231902131,"owners_count":18443335,"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","crontab","github","python"],"created_at":"2024-10-29T20:17:55.299Z","updated_at":"2024-12-30T19:14:27.886Z","avatar_url":"https://github.com/p0dalirius.png","language":"Python","readme":"![](./.github/banner.png)\n\n\u003cp align=\"center\"\u003e\n  A Python script to backup all repos (public or private) of a user.\n  \u003cbr\u003e\n  \u003cimg alt=\"GitHub release (latest by date)\" src=\"https://img.shields.io/github/v/release/p0dalirius/GithubBackupAllRepos\"\u003e\n  \u003ca href=\"https://twitter.com/intent/follow?screen_name=podalirius_\" title=\"Follow\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/podalirius_?label=Podalirius\u0026style=social\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.youtube.com/c/Podalirius_?sub_confirmation=1\" title=\"Subscribe\"\u003e\u003cimg alt=\"YouTube Channel Subscribers\" src=\"https://img.shields.io/youtube/channel/subscribers/UCF_x5O7CSfr82AfNVTKOv_A?style=social\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n![](./.github/example.png)\n\n## Features\n\n - [x] Clone public and private repos\n - [x] Load specified SSH key before starting backup\n - [x] Automatically lists all repos from Github's API\n - [x] Personal access token authentication to Github's API\n\n## Usage\n\n```\n$ ./GithubBackupAllRepos.py -h\nusage: GithubBackupAllRepos.py [-h] -u USERNAME [-d DIRECTORY] [-S SSH_KEY] [-T TOKEN] [-P] [-v]\n\nDescription message\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -u USERNAME, --username USERNAME\n                        Target github username\n  -d DIRECTORY, --directory DIRECTORY\n                        Local directory to store repos into.\n  -S SSH_KEY, --ssh-key SSH_KEY\n                        SSH key to authenticate with.\n  -T TOKEN, --token TOKEN\n                        Github personal access token, necessary to list your private repos.\n  -P, --pull            Perform git pull on existing directories.\n  -v, --verbose         Verbose mode. (default: False)\n```\n\n## Examples\n\n### Cloning all public repos of a user\n\n```\n./GithubBackupAllRepos.py -u TargetUser -d ./SavedRepos/ --pull\n```\n\n### Cloning all your public and private repos\n\n```\n./GithubBackupAllRepos.py -u YourUserName -d ./SavedRepos/ -S ~/.ssh/github -v --pull\n```\n\n## How to create a personal access token\n\nTo create a personal access token you need to go in `Settings \u003e Developer settings \u003e Personal access tokens` in your account, or at [https://github.com/settings/tokens/new](https://github.com/settings/tokens/new)\n\n[![](./.github/create_token.png)](https://github.com/settings/tokens/new)\n\nEverything is in Github's docs here:\n - https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token\n \n## Contributing\n\nPull requests are welcome. Feel free to open an issue if you want to add other features.\n","funding_links":["https://github.com/sponsors/p0dalirius","https://patreon.com/Podalirius"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp0dalirius%2Fgithubbackupallrepos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp0dalirius%2Fgithubbackupallrepos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp0dalirius%2Fgithubbackupallrepos/lists"}