{"id":15692382,"url":"https://github.com/mpolden/ghm","last_synced_at":"2025-05-08T02:39:10.046Z","repository":{"id":15223127,"uuid":"17951716","full_name":"mpolden/ghm","owner":"mpolden","description":"A backup tool for GitHub repositories","archived":false,"fork":false,"pushed_at":"2021-06-25T19:18:55.000Z","size":30,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T16:34:47.955Z","etag":null,"topics":["backup","git","go","mirror"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mpolden.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}},"created_at":"2014-03-20T17:27:31.000Z","updated_at":"2025-02-23T17:27:07.000Z","dependencies_parsed_at":"2022-09-01T23:23:19.575Z","dependency_job_id":null,"html_url":"https://github.com/mpolden/ghm","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/mpolden%2Fghm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolden%2Fghm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolden%2Fghm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolden%2Fghm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpolden","download_url":"https://codeload.github.com/mpolden/ghm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252988867,"owners_count":21836597,"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","git","go","mirror"],"created_at":"2024-10-03T18:32:28.051Z","updated_at":"2025-05-08T02:39:10.024Z","avatar_url":"https://github.com/mpolden.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ghm\n\n![Build Status](https://github.com/mpolden/ghm/workflows/ci/badge.svg)\n\nA backup tool for GitHub repositories.\n\n## Installation\n\nConfigure [GOPATH](https://golang.org/doc/code.html#GOPATH) and run:\n\n    $ go install github.com/mpolden/ghm@latest\n\n## Examples\n\nMirror all public repositories of user *mpolden* into `~/git`:\n\n    $ ghm mpolden ~/git\n\nPrint git commands that would be run:\n\n    $ ghm -n mpolden ~/git\n    /usr/bin/git -C /home/martin/git/dotfiles.git fetch --prune\n    /usr/bin/git clone --mirror git@github.com:mpolden/emacs.d.git /home/martin/emacs.d.git\n    ...\n\n*NOTE: If the repository doesn't already exist on disk, `git clone` will be run,\notherwise the repository is updated using `git fetch`.*\n\nSpeed up mirroring by running git commands concurrently:\n\n    # Updating 52 repositories with concurrency level 1 (default)\n    $ time ghm -q mpolden ~/git\n    ghm mpolden ~/git  0.88s user 0.06s system 1% cpu 1:30.71 total\n\n    # with concurrency level 20\n    $ time ghm -c 20 -q mpolden ~/git\n    ghm -c 20 -q mpolden ~/git  0.88s user 0.13s system 16% cpu 5.995 total\n\n## Usage\n```\n$ ghm -h\nUsage of ghm:\n  -a\tSkip archived repositories\n  -c int\n    \tNumber of repositories to mirror concurrently (default 1)\n  -n\tPrint commands that would be run and exit\n  -p string\n    \tProtocol to use for mirroring [git|https|ssh] (default \"ssh\")\n  -q\tOnly print errors\n  -s\tSkip forked repositories\n\nArguments:\n  \u003cgithub-user\u003e\tGitHub username\n  \u003cpath\u003e\tPath where repositories should be mirrored\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpolden%2Fghm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpolden%2Fghm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpolden%2Fghm/lists"}