Backup and restore OpenClaw data. Use when user asks to create backups, set up automatic backup schedules, restore from backup, or manage backup rotation. Ha...
数据分析
OpenClaw Backup (PhenixStar)
试用Backup and restore OpenClaw data. Use when user asks to create backups, set up automatic backup schedules, restore from backup, or manage backup rotation. Ha...
它能做什么
Backup and restore OpenClaw data. Use when user asks to create backups, set up automatic backup schedules, restore from backup, or manage backup rotation. Handles ~/.openclaw directory archiving with proper exclusions.
技能文档
OpenClaw Backup
Backup and restore OpenClaw configuration, credentials, and workspace.
Create Backup
Run the backup script:
./scripts/backup.sh [backup_dir]
Default backup location: ~/openclaw-backups/
Output: openclaw-YYYY-MM-DD_HHMM.tar.gz
What Gets Backed Up
openclaw.json— main configcredentials/— API keys, tokensagents/— agent configs, auth profilesworkspace/— memory, SOUL.md, user filestelegram/— session datacron/— scheduled tasks
Excluded
completions/— cache, regenerated automatically*.log— logs
Setup Daily Backup with Cron
Use OpenClaw cron for daily backups with notification:
{
"name": "daily-backup",
"schedule": {"kind": "cron", "expr": "0 3 * * *", "tz": "UTC"},
"payload": {
"kind": "agentTurn",
"message": "Run ~/.openclaw/backup.sh and report result to user."
},
"sessionTarget": "isolated",
"delivery": {"mode": "announce"}
}
Restore
See references/restore.md for step-by-step restore instructions.
Quick restore:
openclaw gateway stop
mv ~/.openclaw ~/.openclaw-old
tar -xzf ~/openclaw-backups/openclaw-YYYY-MM-DD_HHMM.tar.gz -C ~
openclaw gateway start
Rotation
Script keeps last 7 backups automatically.
相关技能
Automated backup for OpenClaw instances. Backs up agents, skills, cron jobs, and memory. Supports local tar archives. Credentials, periodic scheduling, and g...
OpenClaw repair toolkit — automated diagnostics, backup/restore, and guided AI-assisted recovery.
Compress OpenClaw session context safely with backups and restore steps.
Archive and organize completed OpenClaw session logs into structured markdown notes for long-term memory retention. Use when wrapping up a long session, consolidating work logs, or preparing daily memory files for review.
通过多轮引导式问答,生成完整的 OpenClaw 个人 AI 助手配置文件。