GithubHelp home page GithubHelp logo

sinakarimi7 / gitlab-backup Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 195 KB

Clone all projects in Gitlab account by group at once.

Home Page: https://pypi.org/project/gitlab-bk

License: MIT License

Python 100.00%
gitlab backup clone sanction gitlab-api

gitlab-backup's Introduction

                                       Python GitHub Issues Contributions welcome License


Gitlab-Backup-Logo

Gitlab Backup Tool

Clone all projects in Gitlab account by group at once.
Report Bug · Request Feature

Table of Contents

TLDR; The last stand before sanctions...

tweet

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, 2020

In 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

$ pip install gitlab-bk

Usage

At first, you have to get GITLAB_PERSONAL_ACCESS_TOKEN from here.

Ensure to check all scopes.

gitlab-pac-page

For more examples, please refer to the GitLab Official Documentation.

Then run script:

gitlab-usage-example

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 token

Optional 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.

Contact

The easiest way to contact me is by sending me an email. But you have several other options available, too.

Twitter Linkedin Telegram Instagram

gitlab-backup's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

darynsteelsword

gitlab-backup's Issues

No matching distribution found for gitlab-bk

 pip install gitlab-bk
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement gitlab-bk (from versions: none)
ERROR: No matching distribution found for gitlab-bk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.