跳转到主要内容

备份GitLab用户或组织

项目描述

PyPI Python Versions

备份GitLab用户或组织

需求

  • GIT 1.9+

安装

通过PyPI使用PIP

pip install gitlab-backup

通过Github使用PIP

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

用法

CLI用法如下

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

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解更多关于 安装包 的信息。

源分布

gitlab-backup-0.5.1.tar.gz (9.4 kB 查看哈希值)

上传时间

构建分布

gitlab_backup-0.5.1-py3-none-any.whl (6.7 kB 查看哈希值)

上传时间 Python 3

由以下支持