{"id":18879233,"url":"https://github.com/iamskok/git-sync","last_synced_at":"2025-04-14T19:13:17.107Z","repository":{"id":40313731,"uuid":"331487046","full_name":"iamskok/git-sync","owner":"iamskok","description":"Backup all GitHub repositories to GitLab.","archived":false,"fork":false,"pushed_at":"2025-03-11T17:42:33.000Z","size":117,"stargazers_count":4,"open_issues_count":12,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T19:13:11.155Z","etag":null,"topics":["backup","docker","git","github","gitlab","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/iamskok.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":"2021-01-21T02:05:09.000Z","updated_at":"2025-02-08T04:27:32.000Z","dependencies_parsed_at":"2023-01-21T04:15:12.841Z","dependency_job_id":"8e711ce3-3a46-4932-bce1-5990d09e05c1","html_url":"https://github.com/iamskok/git-sync","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/iamskok%2Fgit-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamskok%2Fgit-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamskok%2Fgit-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamskok%2Fgit-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamskok","download_url":"https://codeload.github.com/iamskok/git-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248943461,"owners_count":21186958,"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","docker","git","github","gitlab","python"],"created_at":"2024-11-08T06:34:35.815Z","updated_at":"2025-04-14T19:13:17.088Z","avatar_url":"https://github.com/iamskok.png","language":"Python","readme":"# Git Sync (GitHub ➡️ GitLab)\n\nBackup all GitHub repositories in GitLab.\n\n## Preinstallation\n\n- Create GitHub [access token](https://github.com/settings/tokens/new) with `admin:public_key` and `repo` scope.\n- Copy and rename `.env.sample` in the root directory and update it's values.\n\n## Docker Installation\n\nAssuming SSH keys are stored in `~/.ssh` directory.\n\n```\ndocker build --tag git-sync .\n```\n\n## Docker usage\n\n```sh\ndocker run -it \\\n    --env-file=\".env\" \\\n    -e SSH_PRIVATE_KEY=\"$(cat ~/.ssh/id_rsa)\" \\\n    -e SSH_PUBLIC_KEY=\"$(cat ~/.ssh/id_rsa.pub)\" \\\n    -v $PWD/data:/app/data \\\n    git-sync\n```\n\n## Default Installation\n\n```sh\npython3 manage.py --install\n```\n\n## Default Usage\n\n```sh\npython3 index.py\n```\n\n## `manage.py` scripts\n\n```sh\npython3 manage.py --\u003cflag\u003e\n```\n\n| Flag                 | Description                                      |\n| -------------------- | ------------------------------------------------ |\n| `--install`, `-i`    | Install `pip3`, `yarn`, and `docker` dependecies |\n| `--lint`, `-l`       | Lint python files                                |\n| `--format`, `-f`     | Format python files                              |\n| `--commitlint`, `-c` | Lint commit message                              |\n| `--dockerlint`, `-d` | Lint `Dockerfile`                                |\n| `--prettier`, `-p`   | Format `json` and `md` file                      |\n| `--test`, `-t`       | Run unit tests                                   |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamskok%2Fgit-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamskok%2Fgit-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamskok%2Fgit-sync/lists"}