Install
openclaw skills install openclaw-github-backupClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Automatically backup OpenClaw configuration to a private GitHub repository. Features API key sanitization, activity detection, and smart backup frequency (hourly when active, daily when inactive). One-click recovery support.
openclaw skills install openclaw-github-backupAutomatically backup your complete OpenClaw configuration to a private GitHub repository. Features:
openclaw-backup)Copy this skill to your OpenClaw workspace:
# Ensure skills directory exists
mkdir -p ~/.openclaw/workspace/skills
# Copy skill (assuming downloaded to current directory)
cp -r openclaw-backup ~/.openclaw/workspace/skills/
# One-click configuration
bash ~/.openclaw/workspace/skills/openclaw-backup/scripts/install.sh
Follow the prompts to enter:
git@github.com:yourname/openclaw-backup.git)After installation, a cron job will be created in OpenClaw to check for backup needs every hour.
~/.openclaw/backup.sh backup
~/.openclaw/backup.sh auto
~/.openclaw/check-activity.sh
# Output: active or inactive
~/.openclaw/backup.sh restore
Follow the prompts:
openclaw.json to fill in real API keys| Included | Description |
|---|---|
| ✅ openclaw.json | Main configuration (API keys sanitized) |
| ✅ agents/ | All agent session history |
| ✅ extensions/ | All plugins |
| ✅ workspace-*/ | Agent workspaces |
| ✅ memory/ | Agent memory databases |
| ✅ credentials/ | Credential configurations |
| ✅ feishu/ | Feishu configurations |
| ✅ wecom/ | WeChat Work configurations |
| Excluded | Reason |
|---|---|
| ❌ logs/ | Log files, can be regenerated |
| Status | Condition | Backup Frequency |
|---|---|---|
| 🟢 Active | Activity within last hour | Every 1 hour |
| 🔴 Inactive | No new activity | Every 24 hours |
⚠️ Important Security Warnings:
~/.openclaw/
├── backup.sh # Main backup script
├── check-activity.sh # Activity status checker
├── .gitignore # Git ignore configuration
└── workspace/
└── memory/
└── heartbeat-state.json # Records backup state
# Check SSH connection
ssh -T git@github.com
# Force push (use with caution)
cd ~/.openclaw && git push origin main --force
Ensure:
openclaw.json to fill in real API keysopenclaw gateway restartEdit heartbeat-state.json:
{
"backup": {
"activeInterval": 3600000,
"inactiveInterval": 86400000
}
}
Edit ~/.openclaw/.gitignore:
# Custom exclusions
secrets/
*.pem
OpenClaw Community