/github-archive

command line for github organization archival backup.

Primary LanguageGo

github-archive

simple command line tool that allows one to archive an organizations Github repositories. It assumes that where it is being run already has access to the repositories by way of the git command over SSH.

You'll need to also generate a Token to access the Github API to find the list of repositories to archive.

The repositories will be cloned or updated (if they already exist) in the current working directory from where github-archive is invoked.

examples

Archive all repositories for an organization.

github-archive --token TOKEN --org MyCoolDotCom

Archive a single repository for an organization.

github-archive --token TOKEN --org MyCoolDotCom --repo github-archive

increase the number of archive processes from the default of four (4) to ten (10)

github-archive --token TOKEN --org MyCoolDotCom --max 10