Backup git repositories to a Gitlab instance
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
git_backups-0.1.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for git_backups-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c708c4c409f997d6f45ba4ae633f0d506245681332cf638df06b5d0db53bac9 |
|
MD5 | 21218c7cf3e715678a237b378a1f94e5 |
|
BLAKE2b-256 | 8959bc5d530d1e636c4708e55fcea7775f24af91ace2c77fde157854a8365bb6 |