{"id":19777538,"url":"https://github.com/karmek-k/ghdump","last_synced_at":"2026-04-16T03:31:56.702Z","repository":{"id":177609211,"uuid":"481374007","full_name":"karmek-k/ghdump","owner":"karmek-k","description":"Bulk clone GitHub repos for backup - Go version","archived":false,"fork":false,"pushed_at":"2023-11-04T12:00:16.000Z","size":47,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-06T12:26:02.372Z","etag":null,"topics":["cli","git","github","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karmek-k.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}},"created_at":"2022-04-13T21:06:06.000Z","updated_at":"2022-04-14T18:08:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"717c5e0e-e66f-4598-82f1-3b90200238c1","html_url":"https://github.com/karmek-k/ghdump","commit_stats":null,"previous_names":["karmek-k/ghdump"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/karmek-k/ghdump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmek-k%2Fghdump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmek-k%2Fghdump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmek-k%2Fghdump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmek-k%2Fghdump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karmek-k","download_url":"https://codeload.github.com/karmek-k/ghdump/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmek-k%2Fghdump/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31870506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","git","github","go","golang"],"created_at":"2024-11-12T05:25:26.353Z","updated_at":"2026-04-16T03:31:56.668Z","avatar_url":"https://github.com/karmek-k.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ghdump\n\nBulk clone GitHub repos for backup - Go version\n\n## Features\n\n- Single binary\n- Optional authentication via a [personal access token (PAT)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)\n- Adjustable fork cloning (by default, forks are not cloned)\n\n## Installation\n\n### Binaries\n\nGo to the [releases page](https://github.com/karmek-k/ghdump/releases) and download a binary for your OS.\n\n### Building from source\n\n[Download the Go toolchain](https://go.dev/dl/). Clone this repository with `git` and navigate to the resulting directory.\n\nDownload dependencies:\n\n```\ngo mod download\n```\n\nAnd then build the binary:\n\n```\ngo build\n```\n\n## Usage\n\nRun `ghdump` to see all commands:\n\n```\nghdump\n```\n\nTo clone repos of a user or an organization:\n\n```\nghdump clone \u003cusername\u003e\n```\n\n### Available flags for `clone`\n\n- `--token`/`-t` - allows you to provide a [token (PAT)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token), necessary for cloning private repositories\n- `--output-dir`/`-o` - the directory name where repos are cloned - `dump` by default\n- `--visibility`/`-v` - repo visibility (`public`, `private`, `all`) - `all` by default\n- `--clone-forks`/`-f` - pass it to also clone repos forked by the user / organization\n\n## Examples\n\nClone `user321`'s public repos\n\n```\nghdump clone user321\n```\n\nClone all `user321`'s repos with a PAT\n\n```\nghdump clone user321 -t PUT_TOKEN_HERE\n```\n\nClone `user321`'s private repos to `/home/user/repos`\n\n```\nghdump clone user321 -t PUT_TOKEN_HERE -v private -o /home/user/repos\n```\n\n## Contributing\n\nAlways welcome!\n\nIf you want to contribute, please search through other issues first - if there are none that are applicable,\ncreate your own.\n\n### Command scaffolding\n\nI used [`cobra-cli`](https://github.com/spf13/cobra-cli) to generate new commands.\n\nIn order to create one, download it:\n\n```\ngo install github.com/spf13/cobra-cli@latest\n```\n\nAnd then run (for a new command called `mynewcommand` - change to your needs):\n\n```\ncobra-cli add mynewcommand\n```\n\n**Delete comments at the top of the newly generated file.**\n\n## License\n\nLicensed under the [GNU General Public License v3.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarmek-k%2Fghdump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarmek-k%2Fghdump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarmek-k%2Fghdump/lists"}