{"id":16143214,"url":"https://github.com/johnbedeir/github-backup-script","last_synced_at":"2025-04-06T19:25:07.080Z","repository":{"id":103781832,"uuid":"483394950","full_name":"johnbedeir/github-backup-script","owner":"johnbedeir","description":"This script is to backup github ","archived":false,"fork":false,"pushed_at":"2022-04-19T20:20:59.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T01:29:45.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/johnbedeir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2022-04-19T20:12:01.000Z","updated_at":"2024-12-13T04:20:16.000Z","dependencies_parsed_at":"2024-06-02T12:32:01.813Z","dependency_job_id":null,"html_url":"https://github.com/johnbedeir/github-backup-script","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/johnbedeir%2Fgithub-backup-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbedeir%2Fgithub-backup-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbedeir%2Fgithub-backup-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbedeir%2Fgithub-backup-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnbedeir","download_url":"https://codeload.github.com/johnbedeir/github-backup-script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247537078,"owners_count":20954875,"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":[],"created_at":"2024-10-10T00:08:53.458Z","updated_at":"2025-04-06T19:25:07.059Z","avatar_url":"https://github.com/johnbedeir.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub backup script\n\nThe script requires a GitHub token and a destination directory. It then uses the token to populate the destination directory with clones of all the repositories the token can access.\n\nRepeated runs only update the already existing backups and add new repositories, if any.\n\n## Step 1: Installation\n\nInstall the required Python dependencies using `pip3`:\n\n```\n$ pip3 install -r requirements.txt\n```\n\n## Step 2: Configuring\n\n### Create a token\n\nFor authorization you need to create a new personal GitHub token. You can do this from the GitHub settings, under the **Personal Access Tokens** tab.\n\n### Create a configuration file\n\nTo run the script you need a JSON configuration file. For an example see the included file `config.json.example`.\n\n```\n{\n    \"token\": \"ADD-TOKEN-HERE\",\n    \"directory\": \"~/backup/\"\n}\n```\n\n## Step 3: Run the Script\n\n```\n$ python3 backup.py config.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnbedeir%2Fgithub-backup-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnbedeir%2Fgithub-backup-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnbedeir%2Fgithub-backup-script/lists"}