跳到正文
TakoAPI
返回技能列表

synology-backup

由 pfrederiksen 提供

Web & Frontend Development
522下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Backup and restore OpenClaw workspace, configs, and agent data to a Synology NAS via SMB.

描述

该技能的功能

Backs up OpenClaw workspace files, configs, and agent data to a Synology NAS over SMB. Runs incremental daily snapshots with configurable retention and supports Tailscale for secure VPS-to-NAS connectivity.

Incremental rsync-based snapshots keep storage usage low while Tailscale avoids exposing SMB to the public internet.

何时使用

  • Automated nightly backup of OpenClaw workspace to a home NAS
  • Restoring agent configs after a VPS failure or reinstall
  • Checking backup health before making major config changes
  • Syncing a remote VPS to a local NAS securely over Tailscale
  • Pruning old snapshots to stay within NAS storage limits

示例工作流

输入

User asks: Set up daily backups of my OpenClaw workspace to my Synology NAS

智能体
  1. 1

    Creates ~/.openclaw/.smb-credentials with chmod 600 and the user's Synology credentials

  2. 2

    Writes synology-backup.json config with host IP, share path, backup paths, and retention settings

  3. 3

    Installs cifs-utils and rsync via apt-get

  4. 4

    Runs scripts/backup.sh to perform the first full backup

  5. 5

    Runs scripts/status.sh to confirm mount health and snapshot count

输出

Incremental daily snapshots stored under backups/openclaw/<date>/ on the NAS with 7-day retention

前置要求

  • Synology NAS with SMB enabled and a dedicated backup user account
  • Tailscale account (required only for remote VPS-to-NAS connectivity)

安装

clawhub install pfrederiksen/synology-backup

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接