Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,24 @@ Create a backup of OpenClaw configuration.
```

**Parameters:**
- `--scope <scope>` - Backup scope: `config`, `config+session`, `config+session+workspace`
- `--scope <scope>` - Backup scope: `config`, `config+session`, `config+session+workspace`, `minimal`
- `--source <source>` - Backup source: `direct` or `native`
- `--reason <reason>` - Optional reason for the backup

**Scope 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 storage
- `native` runs `openclaw backup create`, extracts the archive, then imports it into OCBS chunk storage
- If the native CLI is unavailable, OCBS falls back to the direct source

**Scope notes:**
- `config` backs up OpenClaw configuration and credentials.
- `config+session` adds OpenClaw session state.
- `config+session+workspace` includes the full workspace.

### restore
Restore from a backup or checkpoint.

Expand Down Expand Up @@ -223,4 +227,4 @@ 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.

### Schema mismatch
The `serve_records` table uses `checkpoint_id` (not `backup_id`) to match checkpoint table schema.
The `serve_records` table uses `checkpoint_id` (not `backup_id`) to match checkpoint table schema.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies = [
]

[project.optional-dependencies]
clawhub = "clawhub>=0.1.0"
clawhub = ["clawhub>=0.1.0"]

[project.scripts]
ocbs = "ocbs.cli:main"
Expand Down