Skip to main content

backup a gitlab user or organization

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitlab-backup-0.3.2.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

gitlab_backup-0.3.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file gitlab-backup-0.3.2.tar.gz.

File metadata

  • Download URL: gitlab-backup-0.3.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for gitlab-backup-0.3.2.tar.gz
Algorithm Hash digest
SHA256 b0240a96afe91119fa30fc82376c408cedf27d6fe30151d423b52068a9ca6ea7
MD5 56c996728e50ea39973fa38ce71321ab
BLAKE2b-256 bd587e78595a150c601d5cc91c3a08bd48cd0a52798983255a6ce47969c69d5e

See more details on using hashes here.

File details

Details for the file gitlab_backup-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: gitlab_backup-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for gitlab_backup-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 73cb3aafea7ab7c4acaa655d61458f1c49b00517dcbf00115539d147ddc03da2
MD5 9e3df87e6b46f0a19090db622f452dcf
BLAKE2b-256 0d94c88f689b02e048e62b90a8f8b80a39389f47df3f4717baaf405311fe9316

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page