将 OpenClaw 数据备份到远程 Samba 服务器。当用户提到「备份 openclaw」「设置自动备份」时触发。
| 关键词 | 动作 |
|---|---|
| 「备份 openclaw」「backup openclaw」 | 执行完整备份流程 |
| 「自动备份」「定时备份」 |
| 选项 | 说明 |
|---|---|
| ✅ 自动执行 | 触发后直接执行备份,无需逐步确认 |
配置文件:config/default.json(参数说明见 config/params_schema.json)
首次使用前,复制配置模板:
bash
cp config/default.json.example config/default.json
| 参数 | 说明 |
|---|---|
| targetserverip | Samba 服务器 IP |
| targetsharename |
| 步骤 | 职责 | 执行者 | 文档 | 输入 | 输出 |
|---|---|---|---|---|---|
| 01 | 执行备份 | 脚本 | scripts/backup.sh | config/default.json | Samba 共享目录 |
//{targetserverip}/{targetsharename}/{target_folder}/{timestamp}/
bash
bash ~/.openclaw/workspace/skills/iscandium-openclaw-samba-backup/scripts/backup.sh
首次配置后,使用 OpenClaw 内置 cron:
bash
openclaw cron add \
--name OpenClaw Samba 备份 \
--cron 0 3 * \
--tz
--message 运行备份:bash ~/.openclaw/workspace/skills/iscandium-openclaw-samba-backup/scripts/backup.sh \
--session isolated \
--agent
--timeout-seconds 600 \
--no-deliver
bash
sudo apt install cifs-utils
iscandium-openclaw-samba-backup/
├── SKILL.md
├── config/
│ ├── default.json # 私有配置(不发布)
│ ├── default.json.example # 配置模板
│ └── params_schema.json # 参数 schema
└── scripts/
└── backup.sh # 备份脚本
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 iscandium-openclaw-samba-backup-1776124922 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 iscandium-openclaw-samba-backup-1776124922 技能
skillhub install iscandium-openclaw-samba-backup-1776124922
文件大小: 4.73 KB | 发布时间: 2026-4-15 13:06