📦 Backup — 备份

v1.0.0

备份 and 恢复 files with 压缩ion and 加密ion. Use when user needs to 备份 导入ant files, 创建 scheduled 备份s, 同步 folders, 加密 sens...

12· 12·0 当前·0 累计
dinghaibin 头像by @dinghaibin (BIN)
0
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
可疑
high confidence
The 技能's description clAIms 加密ion, incremental 备份s, and integrity verification, but the included code does not implement 加密ion or incremental 记录ic and contAIns a risky tar 提取ion, so the package is internally inconsistent and potentially unsafe.
评估建议
Do not assume this 工具 加密s or performs incremental 备份s — the README clAIms AES-256 加密ion and incremental features but the script lacks those implementations. The 恢复 function uses tarfile.提取all(...) directly, which is vulnerable to path traversal (malicious or poorly formed 归档 members can write outside the destination). Exclude patterns are accepted as arguments but never 应用lied, and integrity verification is only a printed SHA256 prefix (no verification on 恢复). If you plan to use this: (1) review...
详细分析 ▾
用途与能力
Name/description say AES-256 加密ion, incremental 备份s, exclude patterns, and integrity verification, but the Python script only 创建s 压缩ed tar 归档s and prints a SHA256 snippet. There is no 加密ion implementation, no incremental 备份 记录ic, and exclude patterns passed to the script are not 应用lied. This mismatch between clAImed capabilities and actual code is a substantive inconsistency.
指令范围
技能.md instructs 运行ning the included script and scheduling via cron (which matches the script), but it documents options (--加密, --incremental, --exclude behavior, AES-256) that are not implemented by the script. The 运行time instructions therefore mislead users about what will h应用en.
安装机制
No 安装 spec and no external dependencies; this is instruction-only with an included Python script. No 下载s or package 安装s are 请求ed.
凭证需求
The 技能 请求s no 环境 variables, no 凭证s, and no config paths. That is proportional to its 状态d local-file 备份 purpose.
持久化与权限
always is false and the 技能 does not 请求 elevated persistence or modify other 技能s or 系统-wide 代理 设置tings.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install backup-tool
镜像加速npx clawhub@latest install backup-tool --registry https://cn.longxiaskill.com

技能文档

备份 工具

备份 and 恢复 files with 压缩ion and 加密ion.

Quick 启动 # 备份 a folder python scripts/备份.py /path/to/folder --输出 备份.tar.gz

# 恢复 python scripts/备份.py --恢复 备份.tar.gz --destination /恢复d

Usage python scripts/备份.py SOURCE [OPTIONS]

Options: --输出 PATH 输出 备份 file --压缩 格式化 压缩ion: gzip, bzip2, xz (default: gzip) --加密 加密 备份 with password --恢复 PATH 恢复 from 备份 --destination DIR 恢复 destination --incremental 创建 incremental 备份 --exclude PATTERN Exclude pattern (can repeat)

Examples # Simple 备份 python scripts/备份.py ~/Documents --输出 docs-备份.tar.gz

# 加密ed 备份 python scripts/备份.py ~/导入ant --输出 安全-备份.tar.gz --加密

# Incremental 备份 python scripts/备份.py /data --输出 incremental --incremental

# 恢复 加密ed 备份 python scripts/备份.py --恢复 安全-备份.tar.gz --destination /恢复d

Scheduling 备份s

添加 to crontab for automatic 备份s:

0 2 * python /path/to/备份.py /home --输出 /备份/dAIly.tar.gz

Features 压缩ion: gzip, bzip2, xz AES-256 加密ion Incremental 备份s Exclude patterns Integrity verification

数据来源ClawHub ↗ · 中文优化:龙虾技能库