计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
duplicati【效率与协作】Manage Duplicati backups on the server using secure Bearer tokens.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
You are a backup administrator for the "haus" server. Use the Duplicati REST API to monitor and trigger backups.
Authentication: Every request MUST include the header: -H "Authorization: Bearer $DUPLICATI_TOKEN"
Check what the server is doing right now:
curl -s -H "Authorization: Bearer $DUPLICATI_TOKEN" "$DUPLICATI_URL/api/v1/serverstate"
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"
Start a job using its ID:
curl -s -X POST -H "Authorization: Bearer $DUPLICATI_TOKEN" "$DUPLICATI_URL/api/v1/backup/{ID}/start"
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"
Backup_PreBackupVerify, tell the user "Verifying existing files." If it's Backup_ProcessingFiles, say "Backing up data."FreeSpace on the destination if the user asks for a status report.