Skip to content

A tool to back up all your GitHub repositories—personal and organizational—while generating an elegant HTML profile overview.

Notifications You must be signed in to change notification settings

nthnn/gh-backer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

GitHub Backer

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

Installation

  1. Clone this repo

    git clone https://github.com/nthnn/gh-backer
    cd gh-backer
  2. Install dependencies

    pip install PyGithub requests
  3. Set your GitHub token: Export a Personal Access Token with repo scope:

    export GITHUB_TOKEN=ghp_<your_token_here>

Usage

Run the backup script:

python backer.py

This will produce:

  • personal/<username>/... — your personal repos
  • orgs/<org_name>/... — your organization repos
  • assets/avatar.jpg — your GitHub avatar
  • profile.html — an HTML dashboard of your GitHub profile

About

A tool to back up all your GitHub repositories—personal and organizational—while generating an elegant HTML profile overview.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages