← 返回 Skills 市场
workspace-backup-manager
作者
jpengcheng523-netizen
· GitHub ↗
· v1.0.0
· MIT-0
113
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install jpeng-workspace-backup-manager
功能描述
Manages workspace backups by creating snapshots and enabling restore points for recovery. Use when backing up workspace or restoring from backup.
使用说明 (SKILL.md)
Workspace Backup Manager
Creates and manages workspace backup snapshots for recovery and versioning.
Usage
const backup = require('./skills/workspace-backup-manager');
// Create a backup
const result = backup.createBackup();
// Create named backup
const result = backup.createBackup({ name: 'before-major-change' });
// List backups
const list = backup.listBackups();
console.log(backup.formatList(list));
// Restore from backup
backup.restoreBackup({ backupName: 'backup-2026-03-26' });
// Cleanup old backups (keep last 10)
backup.cleanupBackups({ keepCount: 10 });
Functions
createBackup(options)- Create a new backup snapshotlistBackups(backupDir)- List all available backupsrestoreBackup(options)- Restore workspace from a backupcleanupBackups(options)- Delete old backups, keeping most recentformatList(result)- Format backup list for display
Backup Contents
Backs up:
- Root files: MEMORY.md, SOUL.md, IDENTITY.md, AGENTS.md, USER.md, HEARTBEAT.md, TOOLS.md
- Directories: memory/, logs/
Example Output
📦 Available Backups (3)
- backup-2026-03-26T03-12-00
Created: 2026-03-26T03:12:00Z
Files: 45 | Size: 128.5 KB
- backup-2026-03-25T18-00-00
Created: 2026-03-25T18:00:00Z
Files: 42 | Size: 115.2 KB
Total size: 0.24 MB
CLI Usage
node -e "require('./skills/workspace-backup-manager').main()"
Storage Location
Backups are stored in:
/root/.openclaw/workspace/backups/
安全使用建议
This skill appears to do what it says — local backups, listing, restore, and cleanup — and it does not contact external services or request secrets. Before installing, consider: (1) it defaults to /root/.openclaw/workspace and will read/write/delete files there, so run it with appropriate filesystem permissions; (2) restore operations overwrite workspace files without confirmation, and cleanup permanently deletes backup directories, so back up important data elsewhere first; (3) review the included index.js if you want to confirm any behavior or change default paths; and (4) because the skill comes from an unknown source, prefer running it in a controlled environment (non-production or limited-permission user) until you are comfortable with it.
功能分析
Type: OpenClaw Skill
Name: jpeng-workspace-backup-manager
Version: 1.0.0
The workspace-backup-manager skill is a utility for creating, listing, and restoring backups of specific workspace files (e.g., MEMORY.md, SOUL.md) and directories. The code in index.js uses standard Node.js filesystem modules (fs) to perform local file copies and deletions within a defined workspace path (/root/.openclaw/workspace), with no evidence of network activity, data exfiltration, or malicious execution.
能力评估
Purpose & Capability
The code implements createBackup, listBackups, restoreBackup, cleanupBackups and formatList as described. The declared purpose (workspace backups and restore points) aligns with the files operated on and the storage location used.
Instruction Scope
SKILL.md instructions and the code reference the same functionality and default paths (/root/.openclaw/workspace/backups). The README shows example usage consistent with exported functions. Note: the code will overwrite files when restoring and will delete backup directories during cleanup; there is no confirmation, access control, or size limits enforced—so accidental data overwrite or removal is possible if misused.
Install Mechanism
There is no install spec; this is effectively an instruction-and-code skill that runs locally using only built-in Node modules (fs, path). No external downloads or package installs are requested.
Credentials
No environment variables, credentials, or external service tokens are requested. The defaults use absolute filesystem paths under /root/.openclaw, which is consistent with its purpose but implies it needs filesystem write/read permission to that location.
Persistence & Privilege
The skill is not force-included (always: false) and does not modify other skills or global agent settings. It performs local filesystem writes and deletions only within backup/workspace directories.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install jpeng-workspace-backup-manager - 安装完成后,直接呼叫该 Skill 的名称或使用
/jpeng-workspace-backup-manager触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Workspace Backup Manager.
- Create, list, and restore workspace backup snapshots.
- Supports named backups and cleanup of old backups.
- Backs up key root files and directories for recovery.
- Provides formatted backup lists and CLI usage option.
- Stores all backups in /root/.openclaw/workspace/backups/.
元数据
常见问题
workspace-backup-manager 是什么?
Manages workspace backups by creating snapshots and enabling restore points for recovery. Use when backing up workspace or restoring from backup. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 113 次。
如何安装 workspace-backup-manager?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install jpeng-workspace-backup-manager」即可一键安装,无需额外配置。
workspace-backup-manager 是免费的吗?
是的,workspace-backup-manager 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
workspace-backup-manager 支持哪些平台?
workspace-backup-manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 workspace-backup-manager?
由 jpengcheng523-netizen(@jpengcheng523-netizen)开发并维护,当前版本 v1.0.0。
推荐 Skills