← 返回 Skills 市场
openclaw-backup-guide
作者
lancelot3777-svg
· GitHub ↗
· v1.0.0
504
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-backup-guide
功能描述
Automates hourly OpenClaw workspace backups with SQLite database export, optional NAS sync via rsync, and GitHub version control commits and pushes.
安全使用建议
This bundle looks like a personal backup snapshot repackaged as a skill. Before installing or running anything:
- Inspect and edit both scripts. Replace hard-coded paths (projectDir, SRC) and the hard-coded NAS host/user with variables you control. Do not run the scripts until those are set to your intended locations/hosts.
- Note the documentation mismatch: SKILL.md/README mention rsync, but backup-nas.sh uses tar+scp. Decide which method you actually want (rsync generally preserves deltas and is safer for large repos).
- Remove or avoid scp to unknown hosts. The script will send a full workspace tarball and a DB file to 192.168.4.95:lstone by default — that could exfiltrate sensitive data if left unchanged. If you do need remote backups, point to your own trusted target or use encrypted transfer/at-rest encryption.
- The scripts suppress stderr (2>/dev/null), which hides failures and could mask problems or abuse; remove that redirection while testing so you can see errors.
- Avoid committing sensitive databases to a Git repo unless the repo is private and you have encryption or other access controls. Prefer storing backups outside VCS or encrypting the backup artifacts before committing.
- backup-db.js expects better-sqlite3 in the target project's node_modules and a very specific folder layout; adjust the script to take configurable paths or to use a bundled dependency to be more robust.
- Run the scripts in a safe test environment first (not on your production workspace). Consider doing a dry-run (no scp/git push) to validate behavior.
Given the hard-coded personal values and doc/code mismatches, treat this as a potentially sloppy or repurposed personal utility rather than a vetted, generic backup skill. If you want to use it, sanitize and parameterize the scripts and verify endpoints/permissions first.
功能分析
Type: OpenClaw Skill
Name: openclaw-backup-guide
Version: 1.0.0
The skill is classified as suspicious due to the `backup-nas.sh` script containing hardcoded paths and a specific private IP address (`[email protected]`) as the `scp` target. While the stated purpose is backup, this hardcoding means that any user installing this skill without modifying the script would attempt to send their workspace data to the author's specific local network NAS, rather than a configurable target. This represents a significant data leakage risk and a severe design flaw for a public skill, even if the target is a private IP and likely an oversight rather than intentional malice.
能力评估
Purpose & Capability
The description promises a general-purpose backup helper (SQLite export, optional NAS sync, GitHub commits). The included scripts, however, are tied to a specific project and environment: backup-db.js points at a hard-coded projectDir ('projects/the-orbital') and requires better-sqlite3 from that project's node_modules; backup-nas.sh hard-codes SRC as /home/killingtime/hub-local and a NAS host [email protected]. The README/SKILL.md say 'rsync' for NAS sync, but the script uses tar+scp. These hard-coded targets and mismatches are not proportional to a reusable backup skill and suggest the package is a personal snapshot rather than a generic tool.
Instruction Scope
The SKILL.md instructs running the supplied scripts on an hourly cron and to commit and push the workspace (including database backups) to GitHub. The actual backup-nas.sh will create a tarball of the entire workspace and scp it to a remote host (hard-coded), and suppresses stderr (2>/dev/null) so failures/errors are hidden. backup-db.js directly accesses a specific project's DB path and loads a module from that project's node_modules. The scripts read and transmit whole workspace content and a DB file — operations that go beyond a minimal, clearly parameterized backup guide and could lead to unintended data exposure if the remote target is not controlled by the user.
Install Mechanism
There is no automated install/download mechanism; this is an instruction + script bundle. No external URLs or archive extraction are performed by the skill itself, which reduces supply-chain risk. However, the included scripts will execute local filesystem and network operations when run.
Credentials
The skill declares no required environment variables or credentials (which is appropriate), but the scripts embed environment-specific values (home path, project path, NAS username and IP) in plain text. SKILL.md suggests using GitHub SSH keys or tokens but does not request them programmatically — nonetheless the practice of committing DB backups to a repo and scp-ing to a hard-coded host is disproportionate without clear justification or parameterization. Also, error suppression in the scripts can hide failed authentication or transfer activity.
Persistence & Privilege
The skill does not request permanent/always-on inclusion and does not modify other skills or system-wide agent settings. It relies on the user to schedule cron jobs; autonomy flags are default and not elevated here.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-backup-guide - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-backup-guide触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
https://github.com/lancelot3777-svg/openclaw-backup-guide
元数据
常见问题
openclaw-backup-guide 是什么?
Automates hourly OpenClaw workspace backups with SQLite database export, optional NAS sync via rsync, and GitHub version control commits and pushes. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 504 次。
如何安装 openclaw-backup-guide?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-backup-guide」即可一键安装,无需额外配置。
openclaw-backup-guide 是免费的吗?
是的,openclaw-backup-guide 完全免费(开源免费),可自由下载、安装和使用。
openclaw-backup-guide 支持哪些平台?
openclaw-backup-guide 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 openclaw-backup-guide?
由 lancelot3777-svg(@lancelot3777-svg)开发并维护,当前版本 v1.0.0。
推荐 Skills