A tool to back up all your GitHub repositories—personal and organizational—while generating an elegant HTML profile overview.
GitHub Backer helps you:
- Clone or update your personal and organization repos in separate folders
- Generate a beautiful
profile.html
with your avatar, bio, followers, following, repositories, and organizations section - Automate backups with idempotent pulls for existing clones
-
Clone this repo
git clone https://github.com/nthnn/gh-backer cd gh-backer
-
Install dependencies
pip install PyGithub requests
-
Set your GitHub token: Export a Personal Access Token with
repo
scope:export GITHUB_TOKEN=ghp_<your_token_here>
Run the backup script:
python backer.py
This will produce:
personal/<username>/...
— your personal reposorgs/<org_name>/...
— your organization reposassets/avatar.jpg
— your GitHub avatarprofile.html
— an HTML dashboard of your GitHub profile