Skip to main content

Synopsis

profclaw backup <subcommand> [flags]

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

SubcommandDescription
createCreate a new backup
listList available backups
restore <file>Restore from a backup file
delete <file>Delete a backup file
scheduleConfigure automatic backup schedule

backup create

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

backup restore <file>

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

backup schedule

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

Examples

profclaw backup create

What is Backed Up

ComponentIncluded by default
SQLite database (data/profclaw.db)Yes
Configuration (config/)Yes
Skills (skills/)Yes
.env fileNo (contains secrets)
Memory indexYes (use --no-memory to skip)
Log filesNo