Skip to content

Backup all the repos from Github using the official API

License

Notifications You must be signed in to change notification settings

schollz/github-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-backup

As of December, 2018 you can download all your GitHub data with the click of a button. However, as of August 2020, this still won't work if you have too many repositories and will result in a unicorn page:

Death screen

When I emailed support, they suggested to use the official migration API to do the download.

So I wrote this python script to do just that. You can simply backup all the repos from Github using the official API.

Usage

Before you start, make sure to get a <secret token> that has admin priveleges, see here.

> python -m pip install loguru click requests tqdm
> wget https://raw.githubusercontent.com/schollz/github-backup/master/github-backup.py
> python github-backup.py --user schollz --token <secret token>

License

MIT

About

Backup all the repos from Github using the official API

Topics

Resources

License

Stars

Watchers

Forks

Languages