Git Product home page Git Product logo

rgiot / github-backup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clockfort/github-backup

1.0 2.0 0.0 214 KB

Backup all the repositories of a github user or organization automatically. (Hilariously, this project I wrote in perl for a GitHub API v2 a long time ago; when GH API v3 came out, a friend rewrote it in Python. Ever since then I've had 0 code in this project, but I'm the maintainer and get ~2-3 pull requests a month to fix other peoples' code)

github-backup's Introduction

GitHub-Backup

Idea/original implementation by Chris Lockfort ([email protected]) (Github username: Clockfort)

Python version by Anthony Gargiulo ([email protected]) (Github username: agargiulo)

Description

GitHub-Backup makes a local backup copy of all of a github user's (or github organization's) repositories.

Dependencies

GitHub-Backup requires pygithub3 a Python library for the GitHub API v3.

Installation is simple with

pip install pygithub3

Usage

usage: github-backup.py [-h] [-c] [-m] [-g ARGS] [-s SUFFIX]
                        username backupdir

makes a backup of all of a github user's repositories

positional arguments:
  username              A Github username
  backupdir             The folder where you want your backups to go

optional arguments:
  -h, --help            show this help message and exit
  -c, --cron            Use this when running from a cron job
  -m, --mirror          Create a bare mirror
  -g ARGS, --git ARGS   Pass extra arguments to git
  -s SUFFIX, --suffix SUFFIX
                        Add suffix to repository directory names

Then, put it in a cron job somewhere and forget about it for eternity.

Why This Software Exists

This software is useful in many cases:

  • GitHub suddenly explodes.

  • GitHub goes out of business.

  • Your corporation's backup policies are more stringent than GitHub's.

  • You have spotty/no internet access - perhaps you'd like to have all of your repositories available to code on while you ride the train?

  • You are paranoid tinfoil-hat wearer who needs to back up everything in triplicate on a variety of outdated tape media.

Questions, Improvements, Etc

If you have any improvements, I'm happy, (grateful, in fact) to entertain pull requests/patches, just drop me a line or message me on GitHub.

github-backup's People

Contributors

agargiulo avatar clockfort avatar dougt avatar gambogi avatar sjs7007 avatar stv0g avatar

Stargazers

 avatar

Watchers

 avatar  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.