🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Backup 2 Github

by @fangbb-coder

Backup personalized OpenClaw configuration and user data to a GitHub repo with single-commit history and optional dry-run preview.

Versionv1.0.1
πŸ’‘ Examples

# Backup current configuration
python backup.py --action backup

Preview what will be backed up (no push)

python backup.py --action backup --dry-run

Restore from backup (overwrites existing files)

python backup.py --action restore

βš™οΈ Configuration

# Install dependencies
pip install -r requirements.txt

Configure (create .env file)

GITHUB_TOKEN=ghp_your_token_here GITHUB_REPO=your-username/your-backup-repo

πŸ“‹ Tips & Best Practices

Error: GITHUB_TOKEN not set β†’ Set token in .env or use --token flag.

Error: Repository not found β†’ Check GITHUB_REPO format: owner/repo.

File not backing up β†’ Ensure path is in BACKUP_FILES and not excluded by patterns.

View on ClawHub
TERMINAL
clawhub install backup-2-github

πŸ§ͺ Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

πŸ” Can't find the right skill?

Search 60,000+ AI agent skills β€” free, no login needed.

Search Skills β†’