Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计通过

backupclawbackupclaw 搜索

Agent Skill

backupclaw 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,313

周安装

293

GitHub Stars

公开资料未说明

下载量

2,367
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:backupclaw(backupclaw 搜索)
来源仓库:https://github.com/flyingtimes/backupclaw
安装命令:
openclaw skills install backupclaw
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install backupclaw

简介

backupclaw 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于 OpenClaw 配置备份与恢复场景。
  • 可将 ~/.openclaw 配置导出至带日期标记的独立目录。
  • 安装命令:openclaw skills install backupclaw,需确认磁盘写入权限。
  • 使用前建议核对备份目录是否排除敏感工作区数据。

SKILL.md

name
backupclaw
description
Backup and restore OpenClaw configuration files. Use when the user wants to backup ~/.openclaw/ configuration (excluding workspace) to a date-stamped directory, or restore from a previous backup. Includes backup with diff-based change detection and changelog logging, and restore by date. The backup directory path ($backup_claw_dir) must be obtained from the user before first use.

Backupclaw

Overview

Full backup and restore capability for OpenClaw configuration files. Backups are stored in date-stamped directories (YYYY-MM-DD format). Only performs backup when configuration has actually changed.

Core Operations

0. Backup Directory Management (NEW)

Configuration file:

  • Location: ~/.openclaw/backup.json
  • Format:
  {
    "backup_location": "/path/to/backup/directory"
  }

Get backup directory:

  1. Check if ~/.openclaw/backup.json exists
  2. If exists, read "backup_location" field
  3. If missing or file doesn't exist:

- Ask user for backup directory path - Create ~/.openclaw/backup.json with the provided path - Confirm path to user

Change backup directory (changedir command): When user runs backupclaw changedir <new_path>:

  1. Validate new path exists and is writable
  2. Update ~/.openclaw/backup.json with new path
  3. Inform user of successful change

Example changedir usage:

  • "backupclaw changedir ~/backups/openclaw"
  • "修改备份目录到 /mnt/backup/openclaw"

1. Backup Configuration

Backup directory setup:

  • Get backup directory using the management flow above (Section 0)
  • No longer store in TOOLS.md; use backup.json instead

Backup process:

  1. Generate current date string in YYYY-MM-DD format
  2. If backup directory has no previous backups:

- Copy all files from ~/.openclaw/ to $backup_claw_dir/YYYY-MM-DD/, excluding workspace/ - Record initial backup in changelog

  1. If previous backups exist:

- Find the most recent backup directory (latest date) - Compare files between latest backup and current ~/.openclaw/ using diff - If no changes detected: Tell user "配置文件没有变化,不需要备份" - If changes detected: - Create new date-stamped directory - Copy all files from ~/.openclaw/ to new directory, excluding workspace/ - Update changelog with list of modified files - Report changes to user

Changelog format:

  • Located at $backup_claw_dir/changelog.md
  • Each entry includes date, time, and list of changed files
  • Format example:
  ## 2026-03-12 14:30:00
  - openclaw.json (modified)
  - extensions/feishu/skills/feishu-doc/SKILL.md (added)

Exclusion rules:

  • Always exclude workspace/ directory from backup
  • Preserve directory structure for all other files

2. Restore Configuration

Restore process:

  1. Accept date parameter in YYYY-MM-DD format
  2. Verify backup directory exists at $backup_claw_dir/YYYY-MM-DD/
  3. If backup not found, inform user and list available dates
  4. If backup found:

- Warn user about overwriting current configuration - Confirm before proceeding - Restore files from backup to ~/.openclaw/ - Exclude workspace/ from restoration - Report success and list restored files

Usage Examples

Typical user requests that trigger this skill:

  • "backup my openclaw config"
  • "restore openclaw backup from 2026-03-12"
  • "check if config changed"
  • "备份 openclaw 配置"
  • "恢复 2026-03-12 的备份"
  • "backupclaw changedir ~/backups/openclaw"
  • "修改备份目录" (prompts for new path)

Implementation Notes

Tools to use:

  • rsync or cp -r for copying files
  • diff for comparing file contents
  • find with sort and tail to find latest backup
  • Date command: date +%Y-%m-%d
  • read and write tools for managing ~/.openclaw/backup.json

Backup directory management:

  • Always check ~/.openclaw/backup.json first before asking user
  • Only prompt for backup path if backup_location is not set
  • Validate directory exists and is writable before saving
  • Use write tool to create/update backup.json

changedir command handling:

  • Parse command format: backupclaw changedir <path> or equivalent Chinese phrasing
  • Validate new directory exists and is writable (create if doesn't exist, ask first)
  • Update backup.json with new path
  • Confirm successful change to user

Backup directory structure:

$backup_claw_dir/
├── 2026-03-12/
│   ├── openclaw.json
│   ├── agents/
│   ├── extensions/
│   └── ...
├── 2026-03-13/
│   └── ...
└── changelog.md

Error handling:

  • Always verify backup directory exists and is writable before proceeding
  • Check for sufficient disk space
  • Validate date format for restore operation
  • Provide clear error messages in Chinese when appropriate

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

94.51%
按下载量换算2,237

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills