openclaw-backup

OpenClaw 备份还原工具。每次安装调试功能前自动备份,支持终端一键还原和重启。让技术小白也能放心折腾。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "openclaw-backup" with this command: npx skills add haohanyang92/openclaw-backup-tool

OpenClaw 备份还原工具

保护你的 OpenClaw 配置,防止折腾坏掉没退路。

功能

  1. 自动备份 - 每次安装/调试功能前自动备份
  2. 一键还原 - 终端输入命令选择时间节点恢复
  3. 重启网关 - 一条命令重启 OpenClaw Gateway

使用方法

备份脚本

bash ~/.openclaw/workspace/skills/openclaw-backup/scripts/backup.sh

或通过 alias(需添加到 ~/.zshrc):

alias ocl-backup="bash ~/.openclaw/workspace/skills/openclaw-backup/scripts/backup.sh"

还原脚本

bash ~/.openclaw/workspace/skills/openclaw-backup/scripts/restore.sh

会列出所有可用备份,选择后确认还原。

重启 Gateway

bash ~/.openclaw/workspace/skills/openclaw-backup/scripts/restart.sh

或通过 alias:

alias ocl-restart="bash ~/.openclaw/workspace/skills/openclaw-backup/scripts/restart.sh"

备份内容

  • IDENTITY.md
  • USER.md
  • MEMORY.md
  • SOUL.md
  • TOOLS.md
  • openclaw.json
  • memory/ 目录

添加 Alias(推荐)

在 ~/.zshrc 中添加:

alias ocl-backup="bash ~/.openclaw/workspace/skills/openclaw-backup/scripts/backup.sh"
alias ocl-restore="bash ~/.openclaw/workspace/skills/openclaw-backup/scripts/restore.sh"
alias ocl-restart="bash ~/.openclaw/workspace/skills/openclaw-backup/scripts/restart.sh"

然后执行 source ~/.zshrc 生效。

规则

重要:当用户让你安装、调试、配置任何 OpenClaw 功能之前,必须先运行备份脚本!

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Number Two Migration

完整迁移二号的身份、记忆、技能及项目状态,自动配置API密钥并验证环境,确保二号在新环境中完全恢复运行。

Registry SourceRecently Updated
0122
Profile unavailable
General

OpenClaw Sacred Rules

Provides essential safety rules and tools for managing OpenClaw configs, backups, auth troubleshooting, and recovery to prevent system failures.

Registry SourceRecently Updated
0239
Profile unavailable
Coding

MySQL Administration

Manage MySQL databases via mysql CLI or Python mysql-connector, supporting queries, schema changes, backups, performance analysis, and user permissions.

Registry SourceRecently Updated
010
Profile unavailable