{"id":16009158,"url":"https://github.com/fwcd/glass","last_synced_at":"2025-08-12T01:31:22.396Z","repository":{"id":98824889,"uuid":"331161960","full_name":"fwcd/glass","owner":"fwcd","description":"Tool for mirroring and backing up repositories from your online Git hosting accounts","archived":false,"fork":false,"pushed_at":"2023-11-06T00:27:16.000Z","size":28,"stargazers_count":4,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-01T16:02:21.295Z","etag":null,"topics":["git","gitea","github","gitlab","mirror"],"latest_commit_sha":null,"homepage":"","language":"Python","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/fwcd.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":"2021-01-20T01:50:30.000Z","updated_at":"2023-02-23T09:46:51.000Z","dependencies_parsed_at":"2023-05-25T16:00:30.111Z","dependency_job_id":null,"html_url":"https://github.com/fwcd/glass","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/fwcd%2Fglass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fglass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fglass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fglass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fwcd","download_url":"https://codeload.github.com/fwcd/glass/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229625048,"owners_count":18100641,"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":["git","gitea","github","gitlab","mirror"],"created_at":"2024-10-08T13:01:22.079Z","updated_at":"2024-12-13T22:34:42.978Z","avatar_url":"https://github.com/fwcd.png","language":"Python","readme":"# Glass\n\n[![Typecheck](https://github.com/fwcd/glass/actions/workflows/typecheck.yml/badge.svg)](https://github.com/fwcd/glass/actions/workflows/typecheck.yml)\n\nA tool that mirrors repositories from your online Git hosting accounts, including from GitHub, GitLab and Gitea.\n\n## Usage\n\nTo use, create a `config.json` using any combination of the listed account types:\n\n```json\n{\n  \"targetDir\": \"\u003cpath/to/your/local/mirroring/folder\u003e\",\n  \"accounts\": [\n    {\n      \"name\": \"your-github\",\n      \"type\": \"github\",\n      \"token\": \"\u003cyour personal access token\u003e\"\n    },\n    {\n      \"name\": \"your-gitlab\",\n      \"type\": \"gitlab\",\n      \"url\": \"\u003chttps://your.gitlab\u003e\",\n      \"token\": \"\u003cyour personal access token\u003e\"\n    },\n    {\n      \"name\": \"your-gitea\",\n      \"type\": \"gitea\",\n      \"url\": \"\u003chttps://your.gitea\u003e\",\n      \"token\": \"\u003cyour personal access token\u003e\"\n    },\n    {\n      \"name\": \"a-single-repo\",\n      \"type\": \"git\",\n      \"url\": \"\u003chttps://your.host/repo.git\u003e\"\n    }\n  ]\n}\n```\n\nA JSON schema can be found [here](config.schema.json) for validation, autocompletion in your IDE etc.\n\nThe directory structure generated by `glass` will look similar to the following:\n\n```\ntargetDir\n├ your-github\n│ ├ your-account\n│ │ ├ repo1.git   \u003c- https://github.com/your-account/repo1.git\n│ │ ├ repo2.git   \u003c- https://github.com/your-account/repo2.git\n│ ...\n├ your-gitlab\n│ ├ your-account\n│ │ ├ repo1.git   \u003c- https://your.gitlab/your-account/repo1.git\n│ │ ├ repo2.git   \u003c- https://your.gitlab/your-account/repo2.git\n├ your-gitea\n│ ├ your-account\n│ │ ├ repo1.git   \u003c- https://your.gitea/your-account/repo1.git\n│ │ ├ repo2.git   \u003c- https://your.gitea/your-account/repo2.git\n│ ...\n├ a-single-repo\n│ └ repo.git      \u003c- https://your.host/repo.git\n...\n```\n\nMake sure that your token has permissions to read and clone the repositories you intend to mirror. Then launch the program with\n\n```\npython3 -m glass --config \u003cpath/to/config.json\u003e\n```\n\nAlternatively, you can place the config file in `~/.config/glass/config.json` and omit the argument:\n\n```\npython3 -m glass\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwcd%2Fglass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffwcd%2Fglass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwcd%2Fglass/lists"}