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.2.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for mirror_gitblit-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac758a6760bfd9f796707f37d9ef8839dd13b727da2212a3736f3ca2c994af9d |
|
MD5 | 260e650ec9e168dccd09161680714493 |
|
BLAKE2b-256 | 5c55a2128036fa0257b851933f1a4e391358bc4bb82e58f45108c6e3b1640fe2 |