glbackup
mirror-clone GitLab repositories to local disk. uses glab CLI for API access (auth, pagination, tokens handled for you).
install
uv tool install glbackup
or run directly without installing:
uvx glbackup
requires glab authenticated (glab auth login).
usage
# back up all repos in a group
glbackup group my-org/my-group
# starred repos only
glbackup starred
# repos you're a member of
glbackup member
# repos you own
glbackup owned
# everything you can see
glbackup all
# only repos under your personal namespace
glbackup owned --include "username/*"
# preview what would be backed up
glbackup group my-org/my-group --dry-run
# list repos without backing up
glbackup list --group my-org/my-group
options
--backup-dir PATH destination (default: cwd)
--protocol [ssh|http] clone protocol (default: ssh)
--workers N parallel clones (default: 4)
--dry-run show what would be backed up
--include-wiki also back up wiki repos
--include-lfs fetch LFS objects
--skip-forks skip forked repos
--forks-only only forked repos
--exclude PATTERN exclude by fnmatch (repeatable)
--include PATTERN include only matching (repeatable)
--post-hook COMMAND run after backup completes
backup layout
./
.manifest.json
group-name/
subgroup/
project-name.git/ # bare mirror
project-name.wiki.git/ # wiki (optional)
working with backups
backups are bare repos (git clone --mirror) — no working tree, all branches/tags/refs preserved. to browse or build code from a backup:
# add a worktree (keeps the bare repo intact)
git worktree add ../my-working-copy main
# or convert to a regular repo
cd project-name.git
git config --bool core.bare false
git checkout main
other commands
glbackup status # show backup state from manifest
glbackup verify # git fsck on all mirrors
config
optional TOML config at ~/.config/gitlabbackup/config.toml:
backup_dir = "~/gitlab-backups"
protocol = "ssh"
workers = 8
gitlab_host = "gitlab.example.com"
exclude_patterns = ["archive/*"]
env vars: GLBACKUP_DIR, GLBACKUP_HOST, GLBACKUP_PROTOCOL, GLBACKUP_WORKERS
Metadata
Release files for glbackup 0.2.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 |
|---|---|---|---|---|
| glbackup-0.2.1.tar.gz | 18.9 kB | Without provenance | Details for glbackup-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glbackup-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for glbackup-0.2.1-py3-none-any.whl |
Total release size: 36.1 kB
Release files / glbackup-0.2.1.tar.gz
| Download URL | glbackup-0.2.1.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6313023c1639f6bd573ad1cd11977a3404971092da7a76ff654d701b9ab4dd5
|
|
BLAKE2b-256 checksum How to use checksums |
09af1f9ab817eca5664c42cdb10ed4d3a5f9e716720efc02f3a7292a9cbdbcd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.16
|
Release files / glbackup-0.2.1-py3-none-any.whl
| Download URL | glbackup-0.2.1-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dbafe9896d21ed413329bc129b9b64302cf3f425087ca90d653d0c85c7a99ac3
|
|
BLAKE2b-256 checksum How to use checksums |
6290f21e622a6fea5385e8fefecf4a08158f0113889b05738ea47c173513906d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.16
|
Security for glbackup 0.2.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.