{"id":24344412,"url":"https://github.com/xtream1101/mirror-to-gitlab","last_synced_at":"2025-04-09T17:15:18.958Z","repository":{"id":81334997,"uuid":"306810885","full_name":"xtream1101/mirror-to-gitlab","owner":"xtream1101","description":"Mirror repos to a gitlab server","archived":false,"fork":false,"pushed_at":"2020-10-26T13:43:28.000Z","size":8,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T17:15:12.699Z","etag":null,"topics":["backup","bash","git","gitlab","mirroring"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xtream1101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-10-24T05:13:32.000Z","updated_at":"2025-02-02T04:00:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"e28c8f60-f3e1-48a6-bf38-b040b45240db","html_url":"https://github.com/xtream1101/mirror-to-gitlab","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/xtream1101%2Fmirror-to-gitlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtream1101%2Fmirror-to-gitlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtream1101%2Fmirror-to-gitlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtream1101%2Fmirror-to-gitlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtream1101","download_url":"https://codeload.github.com/xtream1101/mirror-to-gitlab/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074921,"owners_count":21043490,"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","bash","git","gitlab","mirroring"],"created_at":"2025-01-18T09:35:59.660Z","updated_at":"2025-04-09T17:15:18.953Z","avatar_url":"https://github.com/xtream1101.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mirror git repos to Gitlab\n\nThis script will mirror any git repo to a gitlab server. This repo is setup to run the gitlab ci pipeline on a cron job to get updates from all repos.\n\n\n## Requirements\n- bash\n- git\n- curl\n- Environment Variables:\n  ```bash\n  # Fill in the values with your info to use the script\n\n  # gitlab user access token, needs api \u0026 write repo permissions\n  export MIRROR_GITLAB_TOKEN=\u003cACCESS_TOKEN_HERE\u003e\n  # URL that will be the new remote of the repo (minus the name). NOTE: NO `/` at the end\n  export MIRROR_GITLAB_DOMAIN=\u003cSERVER DOMAIN\u003e\n  export MIRROR_GITLAB_URL=https://gitlab-ci-token:${MIRROR_GITLAB_TOKEN}@${MIRROR_GITLAB_DOMAIN}/\u003cGROUP_NAME\u003e\n  # The group id you want the mirrors to save to\n  export MIRROR_GITLAB_NAMESPACE_ID=\u003cGROUP_ID\u003e\n\n  # Optional\n  # Clone the repo into this directory, will use local dir if not set\n  export MIRROR_PATH=/foo/bar\n  # If set to true, it will delete the locally cloned git repo. Default is false\n  export MIRROR_CLEANUP=false\n  ```\n\n## Usage\n- Add repos, 1 per line in a file called `repos.txt`\n- Run to mirror all repos in the file `./mirror-to-gitlab.sh`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtream1101%2Fmirror-to-gitlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtream1101%2Fmirror-to-gitlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtream1101%2Fmirror-to-gitlab/lists"}