diff --git a/SKILL.md b/SKILL.md index 27fb728..a625370 100644 --- a/SKILL.md +++ b/SKILL.md @@ -20,20 +20,24 @@ Create a backup of OpenClaw configuration. ``` **Parameters:** -- `--scope ` - Backup scope: `config`, `config+session`, `config+session+workspace` +- `--scope ` - Backup scope: `config`, `config+session`, `config+session+workspace`, `minimal` - `--source ` - Backup source: `direct` or `native` - `--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. @@ -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. \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index c64cdb8..96e85bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ dependencies = [ ] [project.optional-dependencies] -clawhub = "clawhub>=0.1.0" +clawhub = ["clawhub>=0.1.0"] [project.scripts] ocbs = "ocbs.cli:main"