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

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

Uploaded Source

Built Distribution

gitlab_backup-0.1.1-py2-none-any.whl (8.5 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for gitlab-backup-0.1.1.tar.gz
Algorithm Hash digest
SHA256 12c9a494794e954e459a31bbeb7924c0935f00c6a05d7631d85cc6882db9cbba
MD5 e9cc20134f80d8e3db4a068218130610
BLAKE2b-256 781edf860a0e63144249beb0a06530fb1adb58370974b68d1e21b63675b2dc71

See more details on using hashes here.

File details

Details for the file gitlab_backup-0.1.1-py2-none-any.whl.

File metadata

File hashes

Hashes for gitlab_backup-0.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 cd75eacd008c529337aba83ad45e6418c8f33bc2d55b919b7a2054458ae7733f
MD5 5e41b89a7aa3cfd2e371c46ccf0972c9
BLAKE2b-256 c1fd6c8d423f5171059109d85f1364570f221a99b4175f4205226ee2762240e0

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