Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

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.

About

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

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.