Install
openclaw skills install openclaw-backup-skillRun and schedule local OpenClaw backup operations with a bundled Bash script. Use when the user wants to create, prune, or automate local OpenClaw backups, inspect retention behavior, or manage backup retention windows.
openclaw skills install openclaw-backup-skillUse the bundled script scripts/openclaw-backup.sh for real operations. Do not rewrite backup logic inline when the bundled script already covers the task.
Use this skill when the user wants to:
This skill assumes:
scripts/openclaw-backup.sh --helpscripts/openclaw-backup.sh --backupscripts/openclaw-backup.sh --manualscripts/openclaw-backup.sh --prune --dry-run --keep-hours 24 --keep-days 7 --keep-weeks 4scripts/openclaw-backup.sh --auto --keep-hours 24 --keep-days 7 --keep-weeks 4For recurring local backups, a good default pattern is:
scripts/openclaw-backup.sh --auto --keep-hours 24 --keep-days 7 --keep-weeks 4On Linux hosts, use the system scheduler (for example cron) when the goal is a direct local script run without chat delivery.
The current backup format includes:
The current backup format intentionally excludes:
backup storage inside a workspace (legacy support);
temp artifacts;
environment variables / system env / system override.
Regular archives are subject to prune; manual archives are excluded from normal prune.
Retention is based on UTC timestamps encoded in archive filenames, not on mtime / ctime.
The script resolves the OpenClaw workspace/config automatically unless the caller passes an explicit output directory.
If the user wants recurring backups, ask before installing or changing scheduled jobs.
For the full behavior contract, retention model, and archive naming rules, read references/spec.md.