Skip to content

Simple tool to backup all repositories from a GitHub user or organization

License

Notifications You must be signed in to change notification settings

renickbuettner/github-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Backup Tool

A simple Rust-based tool for backing up all repositories from a GitHub user or organization as ZIP files.

Screenshot

Features

  • 📦 Downloads repositories as ZIP archives
  • 👤 Supports both user and organization repositories
  • ⚡ Skip already downloaded repositories

Installation

git clone https://github.com/renickbuettner/github-backup.git
cd github-backup
mise install
mise run build

Usage

Create a .env file with your GitHub token:

GITHUB_TOKEN="your_github_token_here"

Run the backup:

# will backup repositories of the user specified in the GITHUB_TOKEN
mise run run 

# backup repositories of a specific user or organization
mise run backup yourusername
mise run backup-org yourorg

Options

Option Description
--token, -t GitHub personal access token (or use GITHUB_TOKEN env var)
--owner, -o GitHub username or organization name (required)
--owner-type user or org (default: user)
--output Output directory (default: data)

GitHub Token

You need a GitHub Personal Access Token with repo scope (and read:org for organizations).

See GITHUB_TOKEN.md for detailed instructions.

License

MIT

About

Simple tool to backup all repositories from a GitHub user or organization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages