返回顶部
P

Plakar Restore WorkflowsPlakar恢复工作流

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
175
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

Plakar Restore Workflows

Plakar 恢复工作流

本技能仅涵盖恢复操作。快照的触发由 openclaw-plugin-plakar 插件自动处理——您无需手动运行 plakar backup。

何时提供恢复服务

当用户说出类似以下内容时,提供从 Plakar 快照恢复的服务:

  • - 撤销那个、回滚、恢复到之前、恢复我的文件
  • 出问题了,我们能回到之前吗
  • 上次的工具调用搞坏了东西

前提条件

  • - plakar 必须在 $PATH 中
  • 存储路径在插件配置中可用,配置项为 plakar.store
  • 始终传递 -no-agent 参数,以避免需要运行中的 plakar 代理守护进程

CLI 语法(v1.0.6+)

所有命令均使用以下格式:

plakar -no-agent at [options]

列出所有快照

bash
plakar -no-agent at ls

输出:快照 ID、时间戳、大小、路径。将列表呈现给用户,并询问要从哪个快照恢复。

检查快照内容

bash
plakar -no-agent at ls
plakar -no-agent at ls -recursive :/path

在恢复前使用此命令确认快照包含预期的状态。

比较两个快照

bash
plakar -no-agent at diff
plakar -no-agent at diff -highlight :/file :/file

使用此命令向用户展示两个时间点之间的变化。

恢复快照

将所有文件恢复到原始路径:
bash
plakar -no-agent at restore

恢复到指定目录:
bash
plakar -no-agent at restore -to /tmp/restore-here

恢复快照中的特定路径:
bash
plakar -no-agent at restore -to /tmp/restore-here :/path/to/file

在运行恢复之前始终与用户确认——恢复操作会覆盖现有文件。

代理交互示例

用户:上次编辑搞坏了我的配置文件,你能撤销吗?

  1. 1. 运行 plakar -no-agent at ls 并显示最近的快照
  2. 询问:我应该从 时间戳的快照 恢复吗?
  3. 确认后:plakar -no-agent at restore -to
  4. 确认恢复完成,并邀请用户验证文件

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 plakar-backup-1776060311 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 plakar-backup-1776060311 技能

通过命令行安装

skillhub install plakar-backup-1776060311

下载

⬇ 下载 Plakar Restore Workflows v1.0.1(免费)

文件大小: 1.68 KB | 发布时间: 2026-4-15 13:55

v1.0.1 最新 2026-4-15 13:55
- Updated all CLI command examples to use modern plakar syntax with -no-agent and at (v1.0.6+)
- Added instructions for restoring to a custom directory and restoring specific paths within a snapshot
- Clarified listing, inspecting, and diffing snapshots with revised commands and options
- Stated the requirement to always pass -no-agent, removing any need for a running plakar agent
- Minor corrections to descriptions for improved clarity and accuracy

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部