@alex3alex

OpenClaw Backup

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.

当前版本
v1.0.0
68 2.2万总安装 352

name: openclaw-backup description: 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"}
}

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.

Security Scan

OpenClaw

gpt-5-mini

clean

OpenClaw 分析

The skill's files and instructions are coherent with a local backup/restore utility for ~/.openclaw; it backs up sensitive data (credentials, Telegram session) as expected but does not show signs of exfiltration or unrelated permissions requests.

置信度: high

VirusTotal

Type: OpenClaw Skill Name: openclaw-backup Version: 1.0.0 This skill is designed to backup and restore OpenClaw data, including sensitive credentials and configuration. The `scripts/backup.sh` script archives the `~/.openclaw` directory locally, excluding logs and cache, and implements a 7-day rotation policy. The `SKILL.md` and `references/restore.md` files provide clear instructions for backup, restore, and setting up a daily cron job. There is no evidence of data exfiltration, malicious execution, obfuscation, or prompt injection attempts against the agent beyond legitimate instructions to perform the backup task.

元数据

  • 作者: @alex3alex
  • 创建时间: 2026/02/07
  • 更新时间: 2026/02/28
  • 版本数: 1
  • 评论数: 0
  • 扫描时间: 2026/02/11

运行要求

官方公开数据里暂未列出运行要求。

OpenClaw Backup | ClawHub 中文站