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.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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 config
credentials/ — API keys, tokens
agents/ — agent configs, auth profiles
workspace/ — memory, SOUL.md, user files
telegram/ — session data
cron/ — 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"}}