==========
A utility to backup all [Gitlab](https://gitlab.com) projects of a user or
group. It can download projects of multiple groups and users.
# Requirements
This requires `python-gitlab` package and requires Python 3.5+.
# Setup
These setup requirements will setup a python
[virtualenv](https://virtualenv.pypa.io/en/latest/) to run the script which
backs up all your projects.
First, setup a config file with your access credentials. `user` and `group` are
optional, you can specify whichever one you want to backup.
```
# ~/.gbackup.ini
[main]
server = https://gitlab.com
token = <access-token>
group =
<gitlab-group1>
<gitlab-group2>
<gitlab-group3>
user =
<gitlab-username>
backup_dir = ~/.gitlab-backup
```
Now, let's setup [virtualenv]((https://virtualenv.pypa.io/en/latest/)) and start
backup.
```bash
$ git clone https://github.com/maxking/gbackup
$ cd glbackup
$ python3 -m venv gitlab
$ source gitlab/bin/activate
(gitlab)$ pip install python-gitlab
```
# Usage
Finally, to start the backup, run the `gbackup.py` script.
```
$ ./gbackup.py
Downloading backup for https://gitlab.com/maxking/mailman to /home/maxking/.gitlab-backup/maxking/mailman/11-Jan-2019-19-53.tar.gz
```
# License
All the contents of this repository is licensed under Apache License
v2.0. Please see the LICENSE file for complete license text.
Metadata
Release files for gbackup 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gbackup-0.0.1.tar.gz | 1.8 kB | Without provenance | Details for gbackup-0.0.1.tar.gz |
Release files / gbackup-0.0.1.tar.gz
| Download URL | gbackup-0.0.1.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e82c8f2570315c73aded1573b99ad4d7444ddda8621e160d79fb848c761a81a1
|
|
BLAKE2b-256 checksum How to use checksums |
12d4e8106a68649831d3f85c127a47ad221850b42b57a64703d75e42f5c38963
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
|
Security for gbackup 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.