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.htmlwith 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
reposcope:export GITHUB_TOKEN=ghp_<your_token_here>
Run the backup script:
python backer.pyThis 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