rbk
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).