Giter Club home page Giter Club logo

github-s3's Introduction

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.

github-s3's People

Contributors

jgorset avatar

Watchers

Kent Tangen avatar Dan Rue avatar James Cloos avatar Paul DeCoursey avatar Matt Dooling avatar Scott Brons avatar Sean Curran avatar Nate Anderson avatar Luke Samaha avatar Dan Megears avatar Jeff Heidelberg avatar LaMoine Zielieke avatar Adam Crow avatar Amy Patton avatar Joel Johnson avatar Christian Oppel avatar Jake Olson avatar Pat Backen avatar Kristine Sieger avatar Eddie Montanez avatar Milinda Rambel Stone avatar Joe Mazzuca avatar Joel Coppin avatar  avatar John Kelly avatar Kraig Schroth avatar Rebecca Sandberg avatar  avatar Brad Ristow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.