Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eriknyquist/github-backup

Shell utility for making local backups of github user accounts and organizations
https://github.com/eriknyquist/github-backup

backup github github-api pure-python utility

Last synced: about 1 month ago
JSON representation

Shell utility for making local backups of github user accounts and organizations

Awesome Lists containing this project

README

        

Github backup utility
---------------------

A simple pure-python script to back up all repositories on a Github org. or
user account. Works on Python 2x and 3x.

Install
=======

Clone this repository and run the ``install.sh`` script

::

git clone https://github.com/eriknyquist/github-backup
cd github-backup
sudo ./install.sh

Usage
=====

Run ``github-backup -h`` to see all available options.

Clone all repositories from the specified user account:

::

github-backup username

Clone all repositories from the specified organization:

::

github-backup orgname -o

Clone only source repositories

::

github-backup username -t source

Clone only forked repositories

::

github-backup username -t fork

Clone all repositories (default)

::

github-backup username -t all

Clone only source repositories and create a .zip archive

::

github-backup username -t source -c

Clone all repositories and create .zip archive in specific directory (/home/erik):

::

github-backup username -d /home/erik -c

Clone all repositories and create .zip archive with specific name (archive.zip)
in specific directory (/home/erik):

::

github-backup username -d /home/erik -f archive.zip -c

Authentication
==============

Enter username/password interactively (hides password on the console):

::

github-backup username -a

Enter username/password as command line arguments:

::

github-backup username -u -p