Project

rbk

0.0
No commit activity in last 3 years
No release in over 3 years
Clones and uploads an organization's GitHub repositories to S3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.64
~> 1.2
< 0.12, ~> 0.11
 Project Readme

rbk

Build Status Coverage Status Gem Version

rbk, short for "Repo BacKup", is a small tool written in Ruby that attempts to make it easy to backup all repos belonging to an organization's GitHub account to a specific bucket on S3.

Installation

$ [sudo] gem install rbk

Usage

The following example shows the simplest invocation of rbk:

$ rbk -o <organization-name> -b <s3-bucket>

This does however assume that the following environment variables are available:

  • GITHUB_ACCESS_TOKEN
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY

It is also possible to specify them as arguments to rbk:

$ rbk -o <organization-name> -b <s3-bucket> -G <GITHUB_TOKEN> -A <ACCESS_KEY> -S <SECRET_KEY>

See rbk -h for further usage:

Usage: rbk [options]
    -o, --organization=NAME          (GitHub) Organization name
    -b, --bucket=NAME                S3 bucket where to store backups
    -G, --github-access-token=TOKEN  GitHub access token
    -A, --access-key-id=KEY          AWS access key id
    -S, --secret-access-key=KEY      AWS secret access key
    -q, --quiet                      Be quiet and mind your own business
    -h, --help                       Display this screen

Copyright

© 2015-2016 Mathias Söderberg, see LICENSE.txt (BSD 3-Clause).