iscandium-openclaw-samba-backup

将 OpenClaw 数据备份到远程 Samba 服务器。当用户提到「备份 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 "iscandium-openclaw-samba-backup" with this command: npx skills add iscandium/iscandium-openclaw-samba-backup

OpenClaw Samba 备份

触发条件

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

执行模式

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

配置

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

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

cp config/default.json.example config/default.json
参数说明
target_server_ipSamba 服务器 IP
target_share_name共享文件夹名称
target_share_usernameSamba 用户名
target_share_passwordSamba 密码
source_admin_username本服务器管理员用户名
source_admin_password管理员密码(sudo 用)
max_backups保留备份数量(默认 7)
source_dir备份源路径(默认 ~/.openclaw)
target_folder目标文件夹名(默认 hostname)
mount.versSMB 版本(默认 2.0)
mount.mount_point挂载点(默认 /mnt/iscandium-openclaw-samba-backup)

工作流(1 步)

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

备份位置

//{target_server_ip}/{target_share_name}/{target_folder}/{timestamp}/

运行备份

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

设置定时备份

首次配置后,使用 OpenClaw 内置 cron:

openclaw cron add \
    --name "OpenClaw Samba 备份" \
    --cron "0 3 * * *" \
    --tz "<your-timezone>" \
    --message "运行备份:bash ~/.openclaw/workspace/skills/iscandium-openclaw-samba-backup/scripts/backup.sh" \
    --session isolated \
    --agent <your-agent> \
    --timeout-seconds 600 \
    --no-deliver

依赖

  • cifs-utils(Samba 客户端)
sudo apt install cifs-utils

目录结构

iscandium-openclaw-samba-backup/
├── SKILL.md
├── config/
│   ├── default.json           # 私有配置(不发布)
│   ├── default.json.example  # 配置模板
│   └── params_schema.json    # 参数 schema
└── scripts/
    └── backup.sh             # 备份脚本

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

M3U8 Downloader

Download encrypted m3u8/HLS videos using parallel downloads. Use when given an m3u8 URL to download a video, especially encrypted HLS streams with AES-128.

Registry SourceRecently Updated
General

Data Analyst Cn

数据分析助手 - 数据清洗、统计分析、可视化建议。适合:数据分析师、产品经理、运营。

Registry SourceRecently Updated
General

QuantumOS

Install and manage QuantumOS, an AI command center dashboard for OpenClaw. Use when the user wants to set up QuantumOS, start/stop the dashboard, troubleshoo...

Registry SourceRecently Updated