Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A cron-suitable script for keeping a local mirror of all an org's repos

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

github-mirrorer

This script automatically mirrors all our organization's public GitHub repos into a specified directory. It's intended to be used in a cron job to keep a set of local mirrors up to date for tools that need local mirrors to work.

Requirements

  • Ruby 1.8.7 (probably 1.9.2+ would work also).
  • A gem which provides json support. E.g., json_pure.

Usage

ruby /path/to/github-mirrorer ORG MIRROR_PATH

E.g.:

ruby /usr/local/bin/github-mirrorer NUBIC /usr/local/share/github-mirror

Copyright

This script is released into the public domain. Use at your own risk.

Something went wrong with that request. Please try again.