Skip to content

redex557/gitlab-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitlab-backup

Collects all projects for your account and/or any Gitlab groups (including recursive subgroups) and stores them to a folder for backup.

The first time the script finds a project it gets cloned, the next time the project is just pulled to keep it up to date.

Usage

Run (using cronjob)

usage: backup.py [-h] [-v] [-q] [-r] [-d DIRECTORY] [-g GROUP_IDS [GROUP_IDS ...]] [-p] [-t]

Gitlab Backup Script

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Verbose mode, all output enabled
  -q, --quite           Quite mode, no output except errors
  -r, --report          Output report after backup is finished
  -d DIRECTORY, --directory DIRECTORY
                        Directory to save the backups in, default is folder you are currently in
  -g GROUP_IDS [GROUP_IDS ...], --groups GROUP_IDS [GROUP_IDS ...]
                        One or more groups IDs to parse for repositorys
  -p, --personal        Enable downloading personal projects of account used.
  -t, --test            Test mode / dry run. Just collect all projects but don't download anything.

About

python tool to backup gitlab (sub)groups

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages