Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sinakarimi7/gitlab-backup
Clone all projects in Gitlab account by group at once.
https://github.com/sinakarimi7/gitlab-backup
backup clone gitlab gitlab-api sanction
Last synced: 23 days ago
JSON representation
Clone all projects in Gitlab account by group at once.
- Host: GitHub
- URL: https://github.com/sinakarimi7/gitlab-backup
- Owner: SinaKarimi7
- License: mit
- Created: 2020-10-09T04:02:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-24T07:25:07.000Z (8 months ago)
- Last Synced: 2024-12-17T19:11:30.379Z (24 days ago)
- Topics: backup, clone, gitlab, gitlab-api, sanction
- Language: Python
- Homepage: https://pypi.org/project/gitlab-bk
- Size: 194 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Python][python-shield]
[![GitHub Issues][issues-shield]][issues-url]
![Contributions welcome][contributions-sheild]
[![License][license-shield]][license-url]
Gitlab Backup Tool
Clone all projects in Gitlab account by group at once.
Report Bug
·
Request Feature
## Table of Contents
- [About](#about-the-project)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
- [Contact](#contact)## TLDR; The last stand before sanctions...
Five days ago #gitlab blocked #Iranians’ access without prior notice! and today we faced with a BIG surprise from GitLab! Blocking our Accounts! #discrimination pic.twitter.com/7Dk6E8Yo0L
— Ahmad Haghighi (@haghighi_ahmad) October 8, 2020In last days, `GitLab` has decided to **block** Iranian accounts from _contributing_ and being part of the **open-source** ecosystem.
They didn't send any messages before this decision and our codes and projects have been locked!
> "Although we understand GitLab might make this decision under the pressure of the US government, we were expecting a more respectful action from GitLab.
**GitLab blocked our access to private repositories suddenly, but at the very least we wanted GitLab to warn us before limiting our access.**
**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.**
_Let us **download** our private repositories and gists and also make them public (setting control)._
Some text above belong here but repeated again:
https://github.com/1995parham/github-do-not-ban-us## Getting Started
You just get the GitLab token and put in this script.
### Prerequisites
This tool wrote in python language, so it needs:
- python3 or above (with pip)
### Installation
```sh
$ pip install gitlab-bk
```## Usage
At first, you have to get `GITLAB_PERSONAL_ACCESS_TOKEN` from [here](https://gitlab.com/profile/personal_access_tokens).
> Ensure to check all scopes.
_For more examples, please refer to the [GitLab Official Documentation](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html)._
Then run script:
You can use with advanced options:
```
Usage: gitlab-bk [-t str] [--verbose] [-u str] [-o str] [-m str] [-v] [-h]Gitlab backup tool, clone all project at once!
Required arguments:
-t str, --token str Gitlab personal access tokenOptional arguments:
--verbose Enable verbose output
-u str, --url str Specify Gitlab instance URL
-m str, --method str Specify clone method (default is "http")
-o str, --output str Output directory (default is "./gitlab-backup")
-v, --version Show program's version number and exit
-h, --help Show this message and exit.
```## License
Distributed under the MIT License. See `LICENSE` for more information.
[stars-shield]: https://img.shields.io/github/stars/SinaKarimi7/Gitlab-Backup.svg?style=flat-square
[stars-url]: https://github.com/SinaKarimi7/Gitlab-Backup/stargazers
[issues-shield]: https://img.shields.io/github/issues/SinaKarimi7/Gitlab-Backup.svg?style=flat-square
[issues-url]: https://github.com/SinaKarimi7/Gitlab-Backup/issues
[license-shield]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
[license-url]: https://opensource.org/licenses/MIT
[contributions-sheild]: https://img.shields.io/badge/contributions-welcome-orange.svg?style=flat-square
[python-shield]: https://img.shields.io/badge/python-v3.6+-blue.svg?style=flat-square