Skip to main content

Synopsis

Description

backup creates and restores snapshots of profClaw’s persistent data. A backup includes the SQLite database, configuration files, skills directory, and optionally the memory index. Backups are stored as compressed archives and can be restored to the same or a different machine.

Subcommands

backup create

string
default:"~/.profclaw/backups/"
Directory or file path for the backup archive. Defaults to ~/.profclaw/backups/profclaw-YYYY-MM-DD.tar.gz.
boolean
Exclude the memory index from the backup (reduces size significantly).
boolean
Exclude configuration files (back up data only).
boolean
Output backup result as JSON.

backup restore <file>

string
required
Path to the backup archive to restore.
boolean
List what would be restored without making changes.
boolean
Skip the confirmation prompt.
Restore overwrites the current database and configuration. Stop the server before restoring to avoid data corruption.

backup schedule

string
Schedule interval: daily, weekly, or a cron expression.
string
default:"7"
Number of backups to retain. Older backups are automatically deleted.

Examples

What is Backed Up