0.0
No commit activity in last 3 years
No release in over 3 years
Command-line library for mirroring an Organization's GitHub repositories
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Mirror Github¶ ↑

This script will cycle through all repositories belonging to an organization and clone a mirror of them to a specified directory.

A mirror is a bare repository that is suitable for future cloning, if necessary.

Installation¶ ↑

gem install mirror_github

Create a mirror_github_config.yml that contains your GitHub username, password, and organization name. There is a config_example.yml file that demonstrates the structure. It will look something like this:

github:
  username: johnnytest
  password: sOOperSecret
  org: my_orgs_github_account_name

Obviously, the user credentials you define in this file need to have access to the specified organization.

Note: you can [create a personal token](github.com/blog/1509-personal-api-tokens) instead of using your username and password. Use it for your username and leave password blank.

Then:

mirror_github --config-file=/path/to/your/mirror_github_config.yml --backup-dir=/path/to/github/mirror/directory