← 返回
AI智能

Plakar backup

Teaches the agent how to list, inspect, diff, and restore Plakar snapshots. Invoke when the user says "undo", "rollback", "restore", or "revert".
教代理列出、检查、对比和恢复 Plakar 快照。用户提及撤销、回滚、恢复或还原时调用。
misterflop
AI智能 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 457
下载
💾 4
安装
1
版本
#latest

概述

Plakar Restore Workflows

This skill covers restore operations only. Triggering snapshots is handled

automatically by the openclaw-plugin-plakar plugin — you do not need to run

plakar backup manually.

When to offer restore

Offer to restore from a Plakar snapshot when the user says anything like:

  • "undo that", "roll back", "revert to before", "restore my files"
  • "something went wrong, can we go back"
  • "the last tool call broke things"

Prerequisites

  • plakar must be in $PATH
  • The store path is available in plugin config as plakar.store
  • Always pass -no-agent to avoid requiring a running plakar agent daemon

CLI syntax (v1.0.6+)

All commands use the form:

plakar -no-agent at <store> <command> [options]

List all snapshots

plakar -no-agent at <store> ls

Output: snapshot ID, timestamp, size, path. Present the list to the user and

ask which snapshot to restore from.

Inspect a snapshot's contents

plakar -no-agent at <store> ls <snapshotID>
plakar -no-agent at <store> ls -recursive <snapshotID>:/path

Use this to confirm the snapshot contains the expected state before restoring.

Diff two snapshots

plakar -no-agent at <store> diff <snapshotID1> <snapshotID2>
plakar -no-agent at <store> diff -highlight <snapshotID1>:/file <snapshotID2>:/file

Use this to show the user what changed between two points in time.

Restore a snapshot

Restore all files to the original paths:

plakar -no-agent at <store> restore <snapshotID>

Restore to a specific directory:

plakar -no-agent at <store> restore -to /tmp/restore-here <snapshotID>

Restore a specific path within a snapshot:

plakar -no-agent at <store> restore -to /tmp/restore-here <snapshotID>:/path/to/file

Always confirm with the user before running a restore — it overwrites live files.

Example agent interaction

> User: "The last edit broke my config file, can you undo it?"

  1. Run plakar -no-agent at ls and show the most recent snapshots
  2. Ask: "Should I restore from snapshot taken at ?"
  3. On confirmation: plakar -no-agent at restore -to
  4. Confirm the restore completed and invite the user to verify the file

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-20 06:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 833 📥 212,782
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 709 📥 243,531
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,055 📥 795,992