openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > OpenClaw Sync

OpenClaw 数据轻量同步技能。基于 rclone + cron,支持 70+ 云存储后端, 定时备份 workspace 数据,资源占用极低。

数据与表格

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v2.0.0

统计:⭐ 0 · 294 · 1 current installs · 1 all-time installs

0

安装量(当前) 1

🛡 VirusTotal :可疑 · OpenClaw :可疑

Package:aohoyo/openclaw-sync

安全扫描(ClawHub)

  • VirusTotal :可疑
  • OpenClaw :可疑

OpenClaw 评估

The skill appears to implement the advertised rclone+cron backup behavior, but there are multiple mismatches and sloppy/inconsistent configuration details (hardcoded paths, missing/extra scripts, package metadata inaccuracies) that merit caution before installing.

目的

The declared purpose (backup via rclone+cron) matches the main scripts: sync.sh, setup-cron.sh, remove-cron.sh and the SKILL.md instructions. Required binary (rclone) is appropriate. However, metadata and docs contain inconsistencies: README refers to scripts (setup.sh, sync-now.sh, restore.sh, list-remote.sh) and systemd unit files that are not present; package.json lists an npm dependency 'rclone' (rclone is not typically an npm package) and…

说明范围

Runtime instructions and scripts will modify the user's crontab and will read and upload files from a workspace directory. The scripts hardcode a WORKSPACE_DIR (/home/wwlhlf/.openclaw/workspace) whereas other docs reference /home/node/.openclaw/workspace — this can cause the script to access an unexpected path or fail silently. The sync list explicitly includes sensitive files (IDENTITY.md, USER.md, memory/, etc.), so installing and enabling t…

安装机制

There is no automated install spec; the skill is instruction-only with scripts provided. That is a lower install-risk profile than arbitrary downloads/executables. The scripts themselves are plain shell scripts (no obfuscated code). The only risk here is operational (running provided scripts will modify crontab and write logs).

证书

The skill requests no environment variables or explicit credentials from the registry metadata, which is reasonable because rclone stores credentials in rclone.conf. However, _meta.json references a rclone config path (~/.config/rclone/rclone.conf) and README refers to config/rclone.conf — the skill does not consistently document where secrets should reside. Because rclone will hold cloud provider keys, the user must be aware that configuring …

持久

The skill installs a cron job into the user's crontab (setup-cron.sh) and can remove it (remove-cron.sh). always is false and model invocation is not disabled. Installing the cron job is a normal behavior for a scheduled backup tool, but it will cause autonomous periodic uploads of the selected workspace directory. README also mentions systemd service management, but those unit files are not present in the repository — another mismatch to be a…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「OpenClaw Sync」。简介:OpenClaw 数据轻量同步技能。基于 rclone + cron,支持 70+ 云存储后端, 定时备份 workspace 数据,资源占用极低。。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/aohoyo/openclaw-sync/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: openclaw-sync
description: |
  OpenClaw 数据轻量同步技能。基于 rclone + cron,支持 70+ 云存储后端,
  定时备份 workspace 数据,资源占用极低。
metadata:
  {
    "openclaw":
      {
        "emoji": "🔄",
        "requires": { "bins": ["rclone"] },
      },
  }
---

# 🔄 OpenClaw 轻量同步

基于 **rclone + cron** 的数据备份方案,定时同步 workspace 到云端。

## 特点

- ✅ **轻量**:无常驻进程,cron 定时触发
- ✅ **通用**:支持 70+ 云存储(七牛/腾讯/阿里/百度/Google Drive...)
- ✅ **智能**:无变化不传输,节省流量
- ✅ **简单**:一条命令完成配置

## 快速开始

### 1. 安装 rclone

```bash
# 自动安装
curl https://rclone.org/install.sh | sudo bash

# 或手动安装
sudo apt-get install rclone
```

### 2. 配置云存储

```bash
# 交互式配置
rclone config

# 按照提示选择云服务商,填写密钥
```

### 3. 配置同步

```bash
cd skills/openclaw-sync

# 编辑配置
vim config/sync-config.json
```

```json
{
  "remote": "myqiniu",           // rclone 配置的 remote 名称
  "bucket": "mybucket",          // 存储桶名称
  "prefix": "openclaw-backup",   // 云端目录前缀
  "interval": "5"                // 同步间隔(分钟)
}
```

### 4. 启动同步

```bash
# 手动测试
bash scripts/sync.sh

# 添加到 cron(推荐)
bash scripts/setup-cron.sh
```

## 目录结构

```
skills/openclaw-sync/
├── config/
│   ├── sync-config.json      # 同步配置
│   └── sync-list.txt         # 文件过滤规则
├── scripts/
│   ├── sync.sh               # 同步脚本
│   ├── setup-cron.sh         # 安装定时任务
│   └── status.sh             # 查看状态
├── logs/
│   └── sync.log              # 同步日志
└── SKILL.md                  # 本文件
```

## 配置文件

### sync-config.json

```json
{
  "remote": "myqiniu",           // rclone remote 名称
  "bucket": "mybucket",          // 存储桶
  "prefix": "openclaw-backup",   // 云端前缀
  "interval": "5",               // 同步间隔(分钟)
  "syncDelete": false            // 是否同步删除
}
```

### sync-list.txt

```
# 包含规则(+开头)
+MEMORY.md
+memory/
+IDENTITY.md
+USER.md
+SOUL.md
+AGENTS.md
+TOOLS.md
+HEARTBEAT.md
+BOOTSTRAP.md
+README.md
+skills/
+tools/

# 排除规则(-开头)
-.git/**
-node_modules/**
-*.tmp
-*.log
-.DS_Store
```

## 常用命令

| 命令 | 说明 |
|------|------|
| `bash scripts/sync.sh` | 手动执行同步 |
| `bash scripts/setup-cron.sh` | 安装定时任务 |
| `bash scripts/remove-cron.sh` | 移除定时任务 |
| `bash scripts/status.sh` | 查看同步状态 |
| `tail -f logs/sync.log` | 查看实时日志 |

## 支持的后端

- 七牛云 Kodo
- 腾讯云 COS
- 阿里云 OSS
- 百度云 BOS
- Google Drive
- Dropbox
- OneDrive
- WebDAV
- FTP/SFTP
- ...(共 70+)

配置方法:`rclone config` 交互式配置

## 故障排查

### 检查 rclone 配置
```bash
rclone listremotes          # 列出已配置的 remote
rclone ls myqiniu:mybucket  # 测试连接
```

### 检查同步日志
```bash
tail -50 logs/sync.log
```

### 手动测试同步
```bash
bash scripts/sync.sh --dry-run  # 模拟运行,不实际上传
```

## 许可证

MIT License