返回顶部
i

iscandium-openclaw-samba-backupOpenClaw远程备份

将 OpenClaw 数据备份到远程 Samba 服务器。当用户提到「备份 openclaw」「设置自动备份」时触发。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
241
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

iscandium-openclaw-samba-backup

OpenClaw Samba 备份

触发条件

关键词动作
「备份 openclaw」「backup openclaw」执行完整备份流程
「自动备份」「定时备份」
设置定时任务 |

执行模式

选项说明
✅ 自动执行触发后直接执行备份,无需逐步确认

配置

配置文件:config/default.json(参数说明见 config/params_schema.json)

首次使用前,复制配置模板:

bash
cp config/default.json.example config/default.json

参数说明
targetserveripSamba 服务器 IP
targetsharename
共享文件夹名称 | | targetshareusername | Samba 用户名 | | targetsharepassword | Samba 密码 | | sourceadminusername | 本服务器管理员用户名 | | sourceadminpassword | 管理员密码(sudo 用) | | max_backups | 保留备份数量(默认 7) | | source_dir | 备份源路径(默认 ~/.openclaw) | | target_folder | 目标文件夹名(默认 hostname) | | mount.vers | SMB 版本(默认 2.0) | | mount.mount_point | 挂载点(默认 /mnt/iscandium-openclaw-samba-backup) |

工作流(1 步)

步骤职责执行者文档输入输出
01执行备份脚本scripts/backup.shconfig/default.jsonSamba 共享目录

备份位置

//{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

依赖

  • - cifs-utils(Samba 客户端)

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 # 备份脚本

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 iscandium-openclaw-samba-backup-1776124922 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 iscandium-openclaw-samba-backup-1776124922 技能

通过命令行安装

skillhub install iscandium-openclaw-samba-backup-1776124922

下载

⬇ 下载 iscandium-openclaw-samba-backup v1.0.0(免费)

文件大小: 4.73 KB | 发布时间: 2026-4-15 13:06

v1.0.0 最新 2026-4-15 13:06
Initial release of OpenClaw Samba backup skill.

- Backs up OpenClaw data to a remote Samba server, triggered by keywords like "备份 openclaw" or "设置自动备份".
- Supports both immediate and scheduled (cron-based) backups.
- Includes easy configuration via JSON files, with a provided template and schema.
- Retains a configurable number of backups and organizes them by timestamp.
- Requires cifs-utils for Samba mounting.
- Provides a standalone backup script for manual or automated runs.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部