Skip to main content

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.

PyPI

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

  1. Fetches all repositories from the GitHub user
  2. Clones each repo to a local folder
  3. Creates a ZIP archive
  4. (Optional) Uploads to Supabase Storage
  5. 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

github_backup_supabase-1.0.5.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

github_backup_supabase-1.0.5-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for github_backup_supabase-1.0.5.tar.gz
Algorithm Hash digest
SHA256 59cc895d4841c16cc6baf22ce049f2e5d8e72fdc74236717f248c34d4f91ed9d
MD5 208240d7b436422a4842624691a4a640
BLAKE2b-256 187410a7fbdc3ace3d8b9744466d895e26effe926c6f25901c3abf593092bd39

See more details on using hashes here.

File details

Details for the file github_backup_supabase-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for github_backup_supabase-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b96e2e3dc2c113de5fad4ff09ab63bd162ce875fab977689635756abef7169e7
MD5 1e0d187ed0347e07e18da4464d9cd548
BLAKE2b-256 9bbbb65048b1c50d0cc24c2ea50b042b321ca3e38920dcb524e6d553c92a40e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page