gitkup is a little python script to quickly backup all private repositories from a gitlab server [api v4 - gitlab9.0+].
Need ssh key loaded on agent to work.
Work on gitlab.com by default, but on selfhosted/onpremises server too. [ssl needed]
Install dependencies using Pipenv and copy config.ini to config.local.ini and customize as needed.
REMEMBER! Create token on gitlab to access read repositories info.
$ pipenv --three install
For a bit of info
$ pipenv run python gitkup.py --help
$ pipenv run python gitkup.py
$ pipenv run python gitkup.py --dest ./my_treasure
$ pipenv run python gitkup.py --mail true
Install dev dipendencies to avoid useless issues.
$ pipenv --three install -d
To launch tests
$ pipenv run pytest -v
or use pipenv shortcut
$ pipenv run tests
issue&&PR || GTFO
have fun!
This project is licensed under the BSD 3-Clause License - see the LICENSE file for details