Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 726 Bytes

readme.md

File metadata and controls

23 lines (18 loc) · 726 Bytes

A simple utility to clone all of your Gitlab repositories so you have a backup.

Assumes you have git installed and on your path.

Start with pipenv install.

You'll need to add a .config file with the following structure in the same directory as glbackup.py:

[global]
default = default
ssl_verify = true
timeout = 50

[default]
url = https://gitlab.com
private_token = PrivateTokenHere
api_version = 4

To use, simply run pipenv run python glbackup.py.

The script will create a repos directory in the same location as the glbackup.py file. All of your Gitlab repositories will be cloned into repos.

It's worth noting that there is currently no handling for updating already cloned repos.