{"id":19147165,"url":"https://github.com/janst123/github-backup","last_synced_at":"2026-04-20T19:32:24.184Z","repository":{"id":233959974,"uuid":"731982736","full_name":"JanST123/github-backup","owner":"JanST123","description":"simple script to backup all your github repositories","archived":false,"fork":false,"pushed_at":"2023-12-15T10:49:54.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-02T16:41:30.632Z","etag":null,"topics":["cron","github-backup","github-backups","netcup","php","shell","webhosting"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/JanST123.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":"2023-12-15T10:49:37.000Z","updated_at":"2023-12-15T10:52:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"17ac7f26-e2ff-4a26-8d13-c931cad36a3e","html_url":"https://github.com/JanST123/github-backup","commit_stats":null,"previous_names":["janst123/github-backup"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JanST123/github-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanST123%2Fgithub-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanST123%2Fgithub-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanST123%2Fgithub-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanST123%2Fgithub-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JanST123","download_url":"https://codeload.github.com/JanST123/github-backup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanST123%2Fgithub-backup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32062357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cron","github-backup","github-backups","netcup","php","shell","webhosting"],"created_at":"2024-11-09T07:49:10.691Z","updated_at":"2026-04-20T19:32:24.166Z","avatar_url":"https://github.com/JanST123.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple github backup script\n\nThis backup script back ups your personal github repositories via git+ssh including also the private repositories.\nIt uses a combination of a shell script and a PHP script. PHP is used as I only have a very basic set of shell commands available at my webhoster \"Netcup\". So this script also works on cheap webhosting packages.\n\n\n## Requirements\n* curl\n* git\n* PHP (5.x should be enough)\n* tar \n* gzip\n\n## Usage\n* Create a **personal access token** in your GitHub `Settings-\u003eDeveloper Settings` with `read:packages` scope\n* Run the script via cronjob like so: `GITHUB_AUTH_TOKEN=\u003cYOUR TOKEN\u003e cd github_backup \u0026\u0026 ./backup.sh  \u003e log.log 2\u003e\u00261`\n\n## Result\nThe script will mirror all your repositories to a local temporary directory and finally tgz it.\n\n**Attention** the script contains a line to remove all existing `.tgz` files first, as I only wanted one backup. As the filename contains the date you could remove this line and have one backup per day. But you will want to implement a cleanup as each backup contains a full copy of all repos. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanst123%2Fgithub-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanst123%2Fgithub-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanst123%2Fgithub-backup/lists"}