Giter VIP home page Giter VIP logo

github-backup's Introduction

Github Backup

Small utility which will concurrently backup many GitHub repositories across multiple organizations to S3 bucket.

Notes

  • If running in container make sure that container is not read-only.
  • Make sure that bucket exists on S3.
  • Make sure that git auth keys are configured and that they have access to repositories.

Setup

  1. Copy .env-example to .env (make sure it is in the same directory as the binary) cp .env-example .env
  2. Put all necessary secrets to .env file
  3. Put all organisations name into config.yml file

Usage

  1. Build the binary with make build
  2. Execute the binary ./ghbackup or run it with go runtime make run

TODO

  • Add more tests
    • Mock S3 upload

Troubleshooting

  • I'm getting panic: AccessDenied: Access Denied while trying to push file to S3, what should I do? This backup utility does not do bucket management at the moment. Default behaviour of S3 is to enlist the contents of the bucket in case if it cannot find key it is searching. Most likely this means that bucket does not exists. Create the S3 bucket you have specified in .env file and try again.

  • Git is giving me exit status 128, what should I do? Scream & Run. (Most likely there are deleted repositories which we are trying to download. Copy paste the command from output and check.)

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.