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.

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.4.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.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file github_backup_supabase-1.0.4.tar.gz.

File metadata

  • Download URL: github_backup_supabase-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 641ee1aa69969422141da34f8026df7a13fa02b9373595990d4f2d343a9ce443
MD5 14b6230ece4e5aa38476475ff217325f
BLAKE2b-256 ad7438d2d0bad5c3d45f25c8e400bd5be000f5595ee21ac394ce3858145dba9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for github_backup_supabase-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7e6b3ef7c7903883393881eb5c8a6fcc9dcf4c2bca497dac5f420e4caeaf4b1b
MD5 f5204c73df61c06da5c6fb0d1e637400
BLAKE2b-256 da5839dba781995caa46109157a79cd0f4345c1478937785a51d4f64f39b760b

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