All Projects → hyperoslo → github-s3

hyperoslo / github-s3

Licence: other
Shell scripts that make it really easy to archive and restore repositories between GitHub and AWS S3

Programming Languages

shell
77523 projects

github-s3

At Hyper, we make lots of things. Many of those things are open source, but there are also things that are closed source. We have a limited amount of private repositories on GitHub, though, so once we haven't needed them for a while we archive them to AWS S3.

These are shell scripts that make it really easy to archive and restore repositories between GitHub and AWS S3.

Usage

Clone the repository from GitHub, compress it and upload it to AWS S3:

$ github-to-s3 hyperoslo/old-repository

Download the repository from AWS S3, uncompress it and push it to a new private repository on GitHub:

$ s3-to-github hyperoslo/old-repository

Installation

$ curl -s --location http://raw.github.com/hyperoslo/github-s3/master/install.sh | sh

Configuration

You'll need to set the following environment variables to use these scripts:

  • GITHUB_S3_BUCKET: The name of the bucket you want to archive to.
  • AWS_DEFAULT_REGION: The AWS region your bucket is in.
  • GITHUB_S3_GITHUB_TOKEN: A GitHub access token with access to create and delete private repositories.

Hyper loves you

Hyper made this. We're a bunch of folks who love building things. You should tweet us if you can't get it to work. In fact, you should tweet us anyway. If you're using github-s3, we probably want to hire you.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].