{"id":20545822,"url":"https://github.com/zcyc/repo-sync","last_synced_at":"2026-04-17T22:31:37.846Z","repository":{"id":58457264,"uuid":"524102753","full_name":"zcyc/repo-sync","owner":"zcyc","description":"This is a repositories synchronize tool alternative to gitlab mirroring repositories.","archived":false,"fork":false,"pushed_at":"2025-07-02T02:02:29.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-02T03:19:16.096Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/zcyc/repo-sync","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zcyc.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-08-12T13:42:42.000Z","updated_at":"2025-07-02T02:02:33.000Z","dependencies_parsed_at":"2024-03-16T21:51:39.568Z","dependency_job_id":null,"html_url":"https://github.com/zcyc/repo-sync","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zcyc/repo-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcyc%2Frepo-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcyc%2Frepo-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcyc%2Frepo-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcyc%2Frepo-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zcyc","download_url":"https://codeload.github.com/zcyc/repo-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcyc%2Frepo-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31948395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"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":[],"created_at":"2024-11-16T01:53:27.382Z","updated_at":"2026-04-17T22:31:37.840Z","avatar_url":"https://github.com/zcyc.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![reposync logo](/images/logo.png)\n\n# repo-sync\nA lightweight synchronization tool for git repositories.\n\n## Manual\n```\nUSAGE:\n    repo-sync [OPTIONS]\n\nOPTIONS:\n    -c, --crontab \u003cCRONTAB\u003e     crontab string, eg: '0 * * * * ? *'\n    -f, --file \u003cFILE\u003e           config file path, eg: ./config.json\n    -h, --help                  Print help information\n    -s, --source \u003cSOURCE\u003e       source repo, eg: https://github.com/zcyc/repo-sync.git\n    -t, --target \u003cTARGET\u003e...    target repo, eg: https://github.com/zcyc/repo-sync.git\n    -b, --branch \u003cBRANCH\u003e       specific branch to sync, eg: 'main'\n    -V, --version               Print version information\n```\n\n## Notice\nBefore you begin the task, make sure that you can access and operate your source and target repositories.\n\n## Configuration\nYou can configure repo-sync using a JSON file. Here's an example:\n\n```json\n[\n    {\n        \"source\": \"https://github.com/zcyc/repo-sync.git\",\n        \"target\": [\n            \"https://github.com/zcyc/repo-sync-1.git\",\n            \"https://github.com/zcyc/repo-sync-2.git\"\n        ],\n        \"crontab\": \"0/10 * * * * ? *\",\n        \"branch\": \"main\"\n    },\n    {\n        \"source\": \"https://github.com/zcyc/repo-sync.git\",\n        \"target\": [\n            \"https://github.com/zcyc/repo-sync-3.git\"\n        ],\n        \"crontab\": \"0/10 * * * * ? *\"\n    }\n]\n```\n\n- `source`: The source repository URL\n- `target`: An array of target repository URLs\n- `crontab`: The schedule for synchronization\n- `branch`: (Optional) Specific branch to sync. If provided, the tool will:\n  - Clone the repository with the specified branch (`git clone -b \u003cbranch\u003e`)\n  - Pull from the specified branch (`git pull origin \u003cbranch\u003e`)\n  - Push only the specified branch to target repositories (`git push target \u003cbranch\u003e`)\n  - If not provided, all branches will be synced (`git push --all`)\n\n## Why Not\n- [git-sync](https://github.com/kubernetes/git-sync) of `kubernetes` only synchronizes the repository into the folder.\n- [Repository mirroring](https://docs.gitlab.com/ee/user/project/repository/mirror/) of `GitLab` requires a paid version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcyc%2Frepo-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzcyc%2Frepo-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcyc%2Frepo-sync/lists"}