← 返回
未分类 中文

Openclaw Backup Skill

Run and schedule local OpenClaw backup operations with a bundled Bash script. Use when the user wants to create, prune, or automate local OpenClaw backups, i...
使用捆绑的 Bash 脚本在本地运行和调度 OpenClaw 备份操作,适用于需要创建、清理或自动化本地 OpenClaw 备份的场景。
synbraino
未分类 clawhub v0.2.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 374
下载
💾 0
安装
1
版本
#backup#cron#latest#openclaw

概述

OpenClaw Backup Skill

Use the bundled script scripts/openclaw-backup.sh for real operations. Do not rewrite backup logic inline when the bundled script already covers the task.

When to use

Use this skill when the user wants to:

  • create a local OpenClaw backup;
  • create a manual backup before risky changes;
  • prune old regular backups;
  • schedule recurring backup runs;
  • inspect or adjust retention behavior.

Preconditions

This skill assumes:

  • Linux;
  • Bash 4+;
  • OpenClaw CLI installed and working;
  • local filesystem access.

Primary commands

  • Show the current CLI contract directly from the script:
  • scripts/openclaw-backup.sh --help
  • Regular backup:
  • scripts/openclaw-backup.sh --backup
  • Manual backup:
  • scripts/openclaw-backup.sh --manual
  • Dry-run prune:
  • scripts/openclaw-backup.sh --prune --dry-run --keep-hours 24 --keep-days 7 --keep-weeks 4
  • Automatic backup + prune:
  • scripts/openclaw-backup.sh --auto --keep-hours 24 --keep-days 7 --keep-weeks 4

Recommended scheduled run

For recurring local backups, a good default pattern is:

  • scripts/openclaw-backup.sh --auto --keep-hours 24 --keep-days 7 --keep-weeks 4

On Linux hosts, use the system scheduler (for example cron) when the goal is a direct local script run without chat delivery.

Operational notes

The current backup format includes:

  • workspace contents, including assistant identity and continuity files (for example SOUL.md, USER.md, AGENTS.md, and other workspace-level context files);
  • OpenClaw config;
  • cron export and human-readable cron summary;
  • software versions;
  • restore instructions;
  • manifest.

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.

版本历史

共 1 个版本

  • v0.2.2 当前
    2026-05-03 10:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,363 📥 319,046
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,219 📥 266,854
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,525