Script to back up a git repo to a Gitlab instance.
Usage:
Create a config file (at .env)
export GITLAB_URL=https://your.custom.gitlab.instance
export GITLAB_USERNAME=username
export GITLAB_TOKEN=5v90m4u8nycw984y
Then run
source .env
gitbak git@github.com:jazzband/django-robots.git
This will create a project django-robots under the jazzband group on the target Gitlab instance.
Help
usage: main.py [-h] [--project PROJECT_NAME] [--group GROUP_NAME] source
positional arguments:
source Git repository URL
optional arguments:
-h, --help show this help message and exit
--project PROJECT_NAME
Name of the destination Gitlab project. Will be inferred from
--group GROUP_NAME Group under which the destination project will be categorised (optional)
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Release files for git-backups 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| git_backups-0.1.2.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| git_backups-0.1.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / git_backups-0.1.2.tar.gz
| Download URL | git_backups-0.1.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d88775588355b495e056540a876b52aa3944cd52762140c96bf64b55ed519e1e
|
|
BLAKE2b-256 checksum How to use checksums |
4ae618d63e95e231a46d19aaae80ad324c12e56312d3bff69125cf9a5aa6bdf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.13
|
Release files / git_backups-0.1.2-py2.py3-none-any.whl
| Download URL | git_backups-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b8800933503b6cef1120e46c2802db9e1e190a9b0b2f324ef2f82de3c6effeb5
|
|
BLAKE2b-256 checksum How to use checksums |
baf88f224a7f70f5aeb8401aa8baeca5f164f73d6fa3f3bb3515ab9a48a0bb24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.13
|