Skip to main content

Backup utility for code hosting websites like Gitlab

Project description


A utility to backup all [Gitlab]( 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]( 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
server =
token = <access-token>
group =
user =
backup_dir = ~/.gitlab-backup

Now, let's setup [virtualenv](( and start

$ git clone
$ cd glbackup
$ python3 -m venv gitlab
$ source gitlab/bin/activate
(gitlab)$ pip install python-gitlab

# Usage

Finally, to start the backup, run the `` script.

$ ./
Downloading backup for 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.

Project details

Download files

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

Files for gbackup, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size gbackup-0.0.1.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page