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]
                     [--private_key]

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
  --private_key         To specify a private key

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.4.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

gitlab_backup-0.4.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gitlab-backup-0.4.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.8.3 requests/2.28.1 setuptools/65.5.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.8

File hashes

Hashes for gitlab-backup-0.4.0.tar.gz
Algorithm Hash digest
SHA256 157243fffa660892bcf0c67f73691239d29351640782834008d6fc710973104a
MD5 3fb1223025363e44a9ea1cb1e4a125c3
BLAKE2b-256 112fd2df38c83a8cc5846afc10c87c5fdeab92a324dda4c6463469e1a4a92a71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gitlab_backup-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.8.3 requests/2.28.1 setuptools/65.5.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.8

File hashes

Hashes for gitlab_backup-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be84c353555c5d1103a85c7c6ef914d8c655250e7384d6bf9a7b61d9209149f9
MD5 f776d31ff7d659ebf6cab35f298a142f
BLAKE2b-256 d087cae2675592ab901868f058143c4caaee61f0e9d0fb715f6408bb54f2fd16

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