/SKILL.md
# OCBS Skill OpenClaw Backup System skill for chat-based backup and restore operations. ## Installation ```bash cd /home/openclaw/.openclaw/workspace-coder/OCBS python install_skill.py ``` ## Commands ### backup Create a backup of OpenClaw configuration. ```bash /ocbs backup --scope config --reason "Before update" /ocbs backup --scope config --source native --reason "Before upgrade" ``` **Parameters:** - `--scope <scope>` - Backup scope: `config`, `config+session`, `config+session+workspa
npx skillsauth add khaentertainment/ocbs ocbsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
OpenClaw Backup System skill for chat-based backup and restore operations.
cd /home/openclaw/.openclaw/workspace-coder/OCBS
python install_skill.py
Create a backup of OpenClaw configuration.
/ocbs backup --scope config --reason "Before update"
/ocbs backup --scope config --source native --reason "Before upgrade"
Parameters:
--scope <scope> - Backup scope: config, config+session, config+session+workspace, minimal--source <source> - Backup source: direct or native--reason <reason> - Optional reason for the backupScope behavior:
| Scope | Description |
|-------|-------------|
| config | Configuration only (openclaw.json, credentials) |
| config+session | Configuration + sessions directory |
| config+session+workspace | Full backup including workspace |
| minimal | Metadata-only checkpoint (stores backup ID, timestamp, scope, reason in SQLite; no file contents) — intended as a lightweight marker for tracking operations rather than a restorable backup |
Source behavior:
direct reads OpenClaw files directly into OCBS chunk storagenative runs openclaw backup create, extracts the archive, then imports it into OCBS chunk storageRestore from a backup or checkpoint.
/ocbs restore --latest
/ocbs restore --checkpoint <checkpoint_id>
Parameters:
--latest - Restore from the latest backup (default)--checkpoint <id> - Restore from a specific checkpoint--target <dir> - Target directory for restore (default: ~/.openclaw)List available backups.
/ocbs list
/ocbs list --scope config
Parameters:
--scope <scope> - Filter by scopeShow backup status and statistics.
/ocbs status
Clean up old backups.
/ocbs clean
/ocbs clean --scope config
Parameters:
--scope <scope> - Filter by scopeCreate a checkpoint for auto-restore with optional web server.
/ocbs checkpoint "Before major change" --serve
/ocbs checkpoint "Before major change" --serve --expiry 60 --host 100.90.22.52
Parameters:
--reason <reason> - Reason for the checkpoint--serve - Start a restore web server and return a restore URL--expiry <minutes> - Set how long the restore link remains valid--host <host> - Override the host or IP used in the restore URLServe behavior:
--serve starts the OCBS restore server so the checkpoint can be restored from a browser.--expiry controls the restore-link lifetime shown to the operator.--host overrides auto-detection when you need a specific Tailscale IP, localhost name, or custom domain.Restore Workflow with Serve:
When --serve is used, a web server starts and a restore URL is returned:
The restore page shows:
--expiryRun OpenClaw native backup (tar.gz archive with manifest) via OCBS skill.
/ocbs native-backup --scope config --verify
/ocbs native-backup --scope config+session --output ~/Backups
Parameters:
--scope <scope> - Backup scope: config, config+session, config+session+workspace--verify - Verify archive after creation--output <dir> - Custom output directory (default: current directory)Notes:
openclaw backup create commandVerify a native backup archive.
/ocbs native-verify ./2026-03-09T00-00-00.000Z-openclaw-backup.tar.gz
Parameters:
--archive <path> - Path to the native backup archiveNotes:
openclaw backup verify commandThese commands can be run directly from terminal:
# Create OCBS backup (incremental)
ocbs backup --scope config --reason "Quick safety snapshot"
ocbs backup --scope config --reason "Manual backup"
ocbs backup --scope config --source native --reason "Pre-upgrade snapshot"
# Restore from latest OCBS backup
ocbs restore --latest
# Restore specific OCBS checkpoint
ocbs restore --checkpoint <id>
# Create checkpoint with web server
ocbs checkpoint "Pre-update snapshot" --serve --expiry 60 --host 100.90.22.52
# List backups
ocbs list
# Show status
ocbs status
# Clean old backups
ocbs clean --scope config+session
# Native backup (tar.gz archive via OpenClaw)
ocbs native-backup --scope config --verify
# Verify native archive
ocbs native-verify ./2026-03-09-openclaw-backup.tar.gz
OCBS stores all data in ~/.config/ocbs/ by default:
~/.config/ocbs/
├── index.db # SQLite index (backups, chunks, checkpoints, serve_records)
├── packs/ # Content-addressable chunk storage
├── config.json # Integration settings
└── backup.log # Cron job output
The --host parameter and web server auto-detect the best connection type:
100.x.x.x) is availableAutomatic backups can be configured via cron:
ocbs integration setup-cron --schedule daily --scope config
Health check for auto-restore can be configured:
ocbs integration setup-heartbeat --enabled --timeout 30
This was fixed in v0.1.0 with batch processing. Restore now handles large backups (13,000+ files) without hitting file descriptor limits.
The serve_records table uses checkpoint_id (not backup_id) to match checkpoint table schema.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.