Tool to mirror repositories of a gitblit server
Project description
Scripts to make backup of gitblit
This package requires at least python 3.6.
List all Repositories: list_repos.py
The command python list_repos.py
lists all repositories of Server configured by
variable base_web_url
. Result is the file repos.json
.
As an alternative, once can also use a browser to create a List of repositories:
- login with an admin account in Gitblit
- Open a Browser Console on the same session
- In the Console Prompt once can use the function
fetch()
like
fetch("https://bayes.htwsaar.de/gitblit/rpc/?req=LIST_REPOSITORIES")
.then(result => result.json()).then(json => json1 = json)
to get list of repository.
- The list of repository can be found in network-Tab
Clone all Repository: clone-all.py
- Configure paramter in
configuration_local.py
. - Call
python3 clone-all.py
Restore repository to new server
Use python restore.py
to restore repositories cloned by clone-all
to
new server. Check parameters in configuration_local.py
for accurate value.
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
mirror_gitblit-0.1.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for mirror_gitblit-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67b9311dac860341cf646029afb879b424f8dce33f2f95edf7ca45d5d3c5ed7e |
|
MD5 | 792f437335b26be122c96333dc919c11 |
|
BLAKE2b-256 | 0041fc1ad568899300e4de16a9b80bbcda00e16fe0c5faf99f5a38e1e584bd95 |