w3c/gh-backup

Name: gh-backup

Owner: World Wide Web Consortium

Description: Automatic backing up of GitHub repositories

Created: 2015-08-25 15:48:19.0

Updated: 2017-09-04 06:01:34.0

Pushed: 2015-09-01 13:17:26.0

Homepage: null

Size: 160

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

gh-backup

Automatic backing up of GitHub repositories for the W3C organisation.

Installation

Just clone the repo wherever you want it. Then call:

npm install -d

At its root. If you want the gh-backup command to be available in your path, just:

npm link .

and you'll be good to go.

Usage
gh-backup help

Prints a help message.

gh-backup version

Prints the version.

gh-backup init /path/to/configuration

Initialises the backup. You need to call this the first time you get a backup running. The configuration is described below. Note that this only backs up public repositories because it only gets those from the GitHub API.

gh-backup update /path/to/configuration

Updates the backup. You should probably call this as a cronjob.

Configuration

The init and update commands take a configuration file. It's a simple JSON file, with the following keys:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.