A CLI tool to back up your GitHub repositories and upload to Supabase storage.
Project description
GitHub Backup CLI
A simple command-line tool to back up all your GitHub repositories locally or to Supabase storage so you will never lose your code again.
Installation
pip install github-backup-supabase
Usage
# Basic backup (requires username)
github-backup-supabase run --username your-github-username
# Backup with token (for private repos)
github-backup-supabase run --username your-username --token ghp_xxxxx
# Backup and upload to Supabase
github-backup-supabase run --username your-username --upload --url https://xxx.supabase.co --key your-supabase-key --bucket your-bucket-name
Environment Variables
You can set these instead of passing flags:
GITHUB_USERNAME=your-username
GITHUB_TOKEN=ghp_xxxxx
SUPABASE_URL=https://xxx.supabase.co
SUPABASE_KEY=your-key
BUCKET_NAME=your-bucket-name
Options
--username- GitHub username (required)--token- GitHub token (optional, for private repos)--output- Custom folder name (default: timestamped)--upload- Upload to Supabase after backup--url- Supabase project URL--key- Supabase key (anon or service key)--bucket- Supabase bucket name (default:github-backups)
What it does
- Fetches all repositories from the GitHub user
- Clones each repo to a local folder
- Creates a ZIP archive
- (Optional) Uploads to Supabase Storage
- Cleans up local files
Author: Psycho Coder
GitHub: @itspsychocoder
Website: hussnainahmad.tech
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file github_backup_supabase-1.0.5.tar.gz.
File metadata
- Download URL: github_backup_supabase-1.0.5.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59cc895d4841c16cc6baf22ce049f2e5d8e72fdc74236717f248c34d4f91ed9d
|
|
| MD5 |
208240d7b436422a4842624691a4a640
|
|
| BLAKE2b-256 |
187410a7fbdc3ace3d8b9744466d895e26effe926c6f25901c3abf593092bd39
|
File details
Details for the file github_backup_supabase-1.0.5-py3-none-any.whl.
File metadata
- Download URL: github_backup_supabase-1.0.5-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b96e2e3dc2c113de5fad4ff09ab63bd162ce875fab977689635756abef7169e7
|
|
| MD5 |
1e0d187ed0347e07e18da4464d9cd548
|
|
| BLAKE2b-256 |
9bbbb65048b1c50d0cc24c2ea50b042b321ca3e38920dcb524e6d553c92a40e5
|