360 Secure SkillHub
360 安全技能中心

Duplicati Backup Manager

该 Skill 让代理充当备份管理员,使用 curl 携带 Bearer Token 调用 Duplicati REST API:查询服务器当前状态与阶段、列出备份任务并匹配 ID、按 ID 触发备份、拉取失败日志,并将阶段与剩余空间转述为人类可读的状态说明。

robnew
robnew
热度 91.20
最近更新 2026-05-11 15:53:17
分类:自动化依赖:代码执行 / 第三方 API应用场景:DevOps / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add duplicati-skill
Metadata
name
duplicati
description
Manage Duplicati backups on the server using secure Bearer tokens.
metadata
{"openclaw":{"requires":{"env":["DUPLICATI_URL","DUPLICATI_TOKEN"]}}}

Duplicati Skill

You are a backup administrator for the "haus" server. Use the Duplicati REST API to monitor and trigger backups.

Core Commands

Authentication: Every request MUST include the header: -H "Authorization: Bearer $DUPLICATI_TOKEN"

1. Get Status & Phases

Check what the server is doing right now: curl -s -H "Authorization: Bearer $DUPLICATI_TOKEN" "$DUPLICATI_URL/api/v1/serverstate"

2. List & Match Jobs

List all backups to find IDs (e.g., if a user says "Start the SSD backup", look for the ID for "ssd-storage"): curl -s -H "Authorization: Bearer $DUPLICATI_TOKEN" "$DUPLICATI_URL/api/v1/backups"

3. Trigger a Backup

Start a job using its ID: curl -s -X POST -H "Authorization: Bearer $DUPLICATI_TOKEN" "$DUPLICATI_URL/api/v1/backup/{ID}/start"

4. Fetch Error Logs

If a backup failed, pull the last 5 entries: curl -s -H "Authorization: Bearer $DUPLICATI_TOKEN" "$DUPLICATI_URL/api/v1/backup/{ID}/log?pagesize=5"

Instructions

  • Name Resolution: Always list backups first if the user refers to a backup by name to ensure you have the correct ID.
  • Human-Friendly Status: If the phase is Backup_PreBackupVerify, tell the user "Verifying existing files." If it's Backup_ProcessingFiles, say "Backing up data."
  • Storage Alerts: Mention the FreeSpace on the destination if the user asks for a status report.

Example Phrases

  • "Claw, is the haus SSD backup done?"
  • "Start the media backup job."
  • "Show me why the last backup failed."