{"id":23209025,"url":"https://github.com/sinakarimi7/gitlab-backup","last_synced_at":"2025-08-19T04:31:45.619Z","repository":{"id":57434652,"uuid":"302528504","full_name":"SinaKarimi7/Gitlab-Backup","owner":"SinaKarimi7","description":"Clone all projects in Gitlab account by group at once.","archived":false,"fork":false,"pushed_at":"2024-05-24T07:25:07.000Z","size":199,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-17T19:11:30.379Z","etag":null,"topics":["backup","clone","gitlab","gitlab-api","sanction"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/gitlab-bk","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/SinaKarimi7.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":"2020-10-09T04:02:00.000Z","updated_at":"2024-10-05T08:29:12.000Z","dependencies_parsed_at":"2022-09-04T15:23:36.220Z","dependency_job_id":null,"html_url":"https://github.com/SinaKarimi7/Gitlab-Backup","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/SinaKarimi7%2FGitlab-Backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinaKarimi7%2FGitlab-Backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinaKarimi7%2FGitlab-Backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinaKarimi7%2FGitlab-Backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SinaKarimi7","download_url":"https://codeload.github.com/SinaKarimi7/Gitlab-Backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230318623,"owners_count":18207812,"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","clone","gitlab","gitlab-api","sanction"],"created_at":"2024-12-18T18:13:47.055Z","updated_at":"2024-12-18T18:13:50.264Z","avatar_url":"https://github.com/SinaKarimi7.png","language":"Python","readme":"\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n![Python][python-shield]\n[![GitHub Issues][issues-shield]][issues-url]\n![Contributions welcome][contributions-sheild]\n[![License][license-shield]][license-url]\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/SinaKarimi7/Gitlab-Backup\"\u003e\n    \u003cimg src=\"https://cdn4.iconfinder.com/data/icons/logos-brands-5/24/gitlab-512.png\" alt=\"Gitlab-Backup-Logo\" width=\"140\" height=\"140\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003eGitlab Backup Tool\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    Clone all projects in Gitlab account by group at once.\n    \u003cbr /\u003e\n   \u003ca href=\"https://github.com/SinaKarimi7/Gitlab-Backup/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/SinaKarimi7/Gitlab-Backup/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\n## Table of Contents\n\n- [About](#about-the-project)\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n- [Usage](#usage)\n- [License](#license)\n- [Contact](#contact)\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n\n## TLDR; The last stand before sanctions...\n\n\u003ca href=\"https://twitter.com/haghighi_ahmad/status/1314149428920553473?s=20\"\u003e\n    \u003cimg src=\"assets/gitlab_sanction_header.jpg\" alt=\"tweet\" width=\"100%\"/\u003e\n    \u003cbr/\u003e\n    \u003cbr/\u003e\n    \u003cblockquote class=\"twitter-tweet\"\u003e\u003cp lang=\"en\" dir=\"ltr\"\u003eFive days ago \u003ca href=\"https://twitter.com/hashtag/gitlab?src=hash\u0026amp;ref_src=twsrc%5Etfw\"\u003e#gitlab\u003c/a\u003e blocked \u003ca href=\"https://twitter.com/hashtag/Iranians?src=hash\u0026amp;ref_src=twsrc%5Etfw\"\u003e#Iranians\u003c/a\u003e’ access without prior notice! and today we faced with a BIG surprise from GitLab! Blocking our Accounts! \u003ca href=\"https://twitter.com/hashtag/discrimination?src=hash\u0026amp;ref_src=twsrc%5Etfw\"\u003e#discrimination\u003c/a\u003e \u003ca href=\"https://t.co/7Dk6E8Yo0L\"\u003epic.twitter.com/7Dk6E8Yo0L\u003c/a\u003e\u003c/p\u003e\u0026mdash; Ahmad Haghighi (@haghighi_ahmad) \u003ca href=\"https://twitter.com/haghighi_ahmad/status/1314149428920553473?ref_src=twsrc%5Etfw\"\u003eOctober 8, 2020\u003c/a\u003e\u003c/blockquote\u003e\n\u003c/a\u003e\n\nIn last days, `GitLab` has decided to **block** Iranian accounts from _contributing_ and being part of the **open-source** ecosystem.\u003cbr/\u003e\nThey didn't send any messages before this decision and our codes and projects have been locked!\u003cbr/\u003e\n\u003cbr/\u003e\n\n\u003e \"Although we understand GitLab might make this decision under the pressure of the US government, we were expecting a more respectful action from GitLab.\n\n**GitLab blocked our access to private repositories suddenly, but at the very least we wanted GitLab to warn us before limiting our access.**\n\n**GitLab decided to take one step further and ban every user that used Iran's IP address somewhere their history no matter where she/he is living, while they could just restrict access by IP address like other US-based companies. This action is a kind of ban by nationality.**\n\n_Let us **download** our private repositories and gists and also make them public (setting control)._\n\nSome text above belong here but repeated again:\nhttps://github.com/1995parham/github-do-not-ban-us\n\n\u003c!-- GETTING STARTED --\u003e\n\n## Getting Started\n\nYou just get the GitLab token and put in this script.\n\n### Prerequisites\n\nThis tool wrote in python language, so it needs:\n\n- python3 or above (with pip)\n\n### Installation\n\n```sh\n$ pip install gitlab-bk\n```\n\n\u003c!-- USAGE EXAMPLES --\u003e\n\n## Usage\n\nAt first, you have to get `GITLAB_PERSONAL_ACCESS_TOKEN` from [here](https://gitlab.com/profile/personal_access_tokens).\n\n\u003e Ensure to check all scopes.\n\n\u003ca href=\"https://gitlab.com/profile/personal_access_tokens\"\u003e\n    \u003cimg src=\"assets/gitlab_pac_page.jpg\" alt=\"gitlab-pac-page\" width=\"100%\"\u003e\n\u003c/a\u003e\n\n_For more examples, please refer to the [GitLab Official Documentation](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html)._\n\nThen run script:\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"assets/gitlab_usage_example.png\" alt=\"gitlab-usage-example\" width=\"76%\"\u003e\n\u003c/p\u003e\n\nYou can use with advanced options:\n\n```\nUsage: gitlab-bk [-t str] [--verbose] [-u str] [-o str] [-m str] [-v] [-h]\n\nGitlab backup tool, clone all project at once!\n\nRequired arguments:\n  -t str, --token str   Gitlab personal access token\n\nOptional arguments:\n  --verbose             Enable verbose output\n  -u str, --url str     Specify Gitlab instance URL\n  -m str, --method str  Specify clone method (default is \"http\")\n  -o str, --output str  Output directory (default is \"./gitlab-backup\")\n  -v, --version         Show program's version number and exit\n  -h, --help            Show this message and exit.\n```\n\n\u003c!-- LICENSE --\u003e\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\n[stars-shield]: https://img.shields.io/github/stars/SinaKarimi7/Gitlab-Backup.svg?style=flat-square\n[stars-url]: https://github.com/SinaKarimi7/Gitlab-Backup/stargazers\n[issues-shield]: https://img.shields.io/github/issues/SinaKarimi7/Gitlab-Backup.svg?style=flat-square\n[issues-url]: https://github.com/SinaKarimi7/Gitlab-Backup/issues\n[license-shield]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\n[license-url]: https://opensource.org/licenses/MIT\n[contributions-sheild]: https://img.shields.io/badge/contributions-welcome-orange.svg?style=flat-square\n[python-shield]: https://img.shields.io/badge/python-v3.6+-blue.svg?style=flat-square\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinakarimi7%2Fgitlab-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinakarimi7%2Fgitlab-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinakarimi7%2Fgitlab-backup/lists"}