Skip to main content

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:

  1. login with an admin account in Gitblit
  2. Open a Browser Console on the same session
  3. 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.

  1. The list of repository can be found in network-Tab

Clone all Repository: clone-all.py

  1. Configure paramter in configuration_local.py.
  2. 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


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)

Uploaded Source

Built Distribution

mirror_gitblit-0.1.2-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page