Giter Site home page Giter Site logo

python-gitlab-backup's Introduction

gitlab-backup

PyPI Python Versions

backup a gitlab user or organization

Requirements

  • GIT 1.9+

Installation

Using PIP via PyPI:

pip install gitlab-backup

Using PIP via Github:

pip install git+https://github.com/josegonzalez/python-gitlab-backup.git#egg=gitlab-backup

Usage

CLI Usage is as follows:

usage: gitlab-backup [-h] [--host HOST] [--username USERNAME]
                     [--password PASSWORD] [--oath-token OATH_TOKEN]
                     [--private-token PRIVATE_TOKEN] [--clone-bare]
                     [--clone-lfs] [--disable-ssl-verification]
                     [--namespace NAMESPACE]
                     [--output-directory OUTPUT_DIRECTORY] [--prefer-ssh]
                     [--skip-existing]

Backup a gitlab account

optional arguments:
  -h, --help            show this help message and exit
  --host HOST           gitlab host
  --username USERNAME   username for basic auth
  --password PASSWORD   password for basic auth. If a username is given but
                        not a password, the password will be prompted for.
  --oath-token OATH_TOKEN
                        oath token, or path to token (file://...)
  --private-token PRIVATE_TOKEN
                        private token, or path to token (file://...)
  --clone-bare          clone bare repositories
  --clone-lfs           clone LFS repositories (requires Git LFS to be
                        installed, https://git-lfs.github.com)
  --disable-ssl-verification
                        disable ssl verification
  --namespace NAMESPACE
                        specify a gitlab namespace to backup
  --output-directory OUTPUT_DIRECTORY
                        directory at which to backup the repositories
  --prefer-ssh          Clone repositories using SSH instead of HTTPS
  --skip-existing       skip project if a backup directory exists
  --with-membership     Backup projects provided user or key is member of

python-gitlab-backup's People

Contributors

josegonzalez avatar thekvs avatar zaxasheats avatar

Watchers

James Cloos avatar Mathis avatar  avatar

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.