{"id":16213776,"url":"https://github.com/akrck02/github-backup-script","last_synced_at":"2026-02-09T18:03:17.846Z","repository":{"id":65964317,"uuid":"457152546","full_name":"akrck02/github-backup-script","owner":"akrck02","description":"Script for local github backup.","archived":false,"fork":false,"pushed_at":"2025-01-02T17:51:56.000Z","size":4169,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-12T07:10:28.673Z","etag":null,"topics":["backup-script","crontask","git","github","linux"],"latest_commit_sha":null,"homepage":"","language":"Go","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/akrck02.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":"2022-02-09T00:31:43.000Z","updated_at":"2025-02-01T18:58:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"1cf97b19-5bee-44ed-900e-aaf2f2eef1d2","html_url":"https://github.com/akrck02/github-backup-script","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":"0.17391304347826086","last_synced_commit":"6892e439398ad8edcd868c963a96a9a900e8f00c"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akrck02%2Fgithub-backup-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akrck02%2Fgithub-backup-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akrck02%2Fgithub-backup-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akrck02%2Fgithub-backup-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akrck02","download_url":"https://codeload.github.com/akrck02/github-backup-script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238750018,"owners_count":19524289,"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-script","crontask","git","github","linux"],"created_at":"2024-10-10T11:08:26.568Z","updated_at":"2025-10-29T00:31:35.667Z","avatar_url":"https://github.com/akrck02.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github backup script\n\nThis script will backup your public github repositories to a local directory.\n\n## ¿How to use it?\n\n`Download the script` and place it in a `directory of your choice` and create the following directory:\n\n    /path/to/script\n    ├── github-backup-script\n    └── Resources \n        ├── .env\n        └── git.json\n\nIn the `.env` file, you must place your github username and `the path to the backup directory`.\n\nThe `token is optional`, just leave with \"\" if you don't want to use it.\n\n```.env\ngithub.backup.token=****************\ngithub.backup.path=/your/backup/directory\n```\n\nThe `git.json` file is used tell the script which repositories you want to backup.\n\n```json\n[\n    {\n        \"username\": \"github_username\",\n        \"repositories\": [\n            \"repository1\",\n            \"repository2\",\n            \"repository3\"\n        ]\n    },\n    {\n        \"username\": \"github_username2\",\n        \"repositories\": [\n            \"repository1\"\n        ]\n    }\n]\n```\n\n\nMake the script executable Then, run it:\n\n```bash\nchmod +x github-backup-script\n./github-backup-script\n```\n\n\n# Github data fetch script\n\nThis script will fetch your public Github repository names \nand create the `git.json` file for you.\n\n\n## ¿How to use it?\n\n`Download the script` and place it in a `directory of your choice` and create the following directory:\n\n    /path/to/script\n    ├── github-data-fetch\n    └── Resources \n        └── .env\n\nIn the `.env` file, you must place the `usernames of the accounts you want to backup`.\n\nThe `token is not necessary`, just leave with \"\".\n\n\n```.env\ngithub.fetch.usernames=akrck02,torvalds\ngithub.fetch.token=****************\ngithub.fetch.json.path=/place/for/git.json/file\n```\n\nMake the script executable Then, run it:\n\n```bash\nchmod +x github-data-fetch\n./github-data-fetch\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakrck02%2Fgithub-backup-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakrck02%2Fgithub-backup-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakrck02%2Fgithub-backup-script/lists"}