← 返回 Skills 市场
ivangdavila

Backup

作者 Iván · GitHub ↗ · v1.0.0
linuxdarwinwin32 ✓ 安全检测通过
1398
总下载
2
收藏
6
当前安装
1
版本数
在 OpenClaw 中安装
/install backups
功能描述
Implement reliable backup strategies avoiding data loss, failed restores, and security gaps.
使用说明 (SKILL.md)

The Only Rule That Matters

  • Untested backups are not backups — schedule regular restore tests, not just backup jobs
  • Test restores to different hardware/location — validates both backup and restore procedure
  • Time the restore — know how long recovery actually takes before disaster strikes

3-2-1 Rule Violations

  • Same disk as source data = not a backup — disk failure loses both
  • Same server as source = not a backup — ransomware/fire/theft takes both
  • Same cloud account = risky — account compromise or provider issue loses both
  • Cloud sync (Dropbox, Drive) is not backup — syncs deletions and corruption too

Ransomware Protection

  • Backups accessible from production get encrypted too — air gap or immutable storage required
  • Append-only/immutable storage prevents deletion — S3 Object Lock, Backblaze B2 with retention
  • Offline rotation (USB drives, tapes) for critical data — can't encrypt what's not connected
  • Test restoring from immutable backup — verify ransomware can't corrupt the restore process

Database Backup Traps

  • File copy of running database = corrupted backup — use pg_dump, mysqldump, mongodump
  • Point-in-time recovery needs WAL/binlog archiving — dump alone loses recent transactions
  • Large databases: pg_dump locks tables — use pg_basebackup or logical replication for zero downtime
  • Test restore to different server — verifies backup is self-contained

Incremental Backup Pitfalls

  • Incrementals depend on chain — one corrupted backup breaks all following
  • Long chains slow restores — schedule periodic full backups
  • Deduplication saves space but adds complexity — single repo corruption affects all backups
  • Verify backup integrity regularly — bit rot happens, checksums catch it

Retention Mistakes

  • No retention policy = storage fills up — define and automate cleanup
  • Too aggressive retention = can't recover old corruption — keep monthlies for a year minimum
  • Legal/compliance requirements may mandate retention — check before setting policy
  • Grandfather-father-son pattern: daily/weekly/monthly tiers

Filesystem Traps

  • Permissions and ownership often lost — verify restore preserves them, or document expected state
  • Symlinks may not backup correctly — some tools follow, some copy link, test behavior
  • Sparse files may inflate — 1GB sparse file becomes 1GB actual in backup
  • Extended attributes and ACLs — not all tools preserve them

Cloud and Remote

  • Encrypt before upload — cloud provider breach shouldn't expose your data
  • Bandwidth costs add up — initial seed via physical drive for large datasets
  • Region matters for disaster recovery — same region as production doesn't survive regional outage
  • Egress fees can be brutal — know restore costs before emergency

Tool-Specific

  • rsync --delete on wrong direction destroys source — always double-check source/destination
  • restic/borg need repository password — lose it = lose all backups, no recovery
  • Tarball without compression: faster, but larger — choose based on CPU vs storage tradeoff
  • Snapshots (LVM, ZFS, cloud) are not backups — same storage system, same failure domain

Documentation

  • Document restore procedure — you won't remember under pressure
  • Store procedure outside the backup — printed, different system, password manager
  • Include credentials, paths, expected time — everything needed to restore at 3am
安全使用建议
This is a guidance-only skill that summarizes backup best practices — it does not perform backups or request credentials. It's coherent and low-risk to install. Keep in mind: the skill itself won't create or test backups for you; if you later add automation or a skill that runs commands or accesses cloud storage, that will require credentials and deserves a fresh security review. Also follow its own warning: double-check any destructive command flags (e.g., rsync --delete) before running them in your environment.
功能分析
Type: OpenClaw Skill Name: backups Version: 1.0.0 The skill bundle contains standard metadata and a comprehensive markdown document (`SKILL.md`) detailing best practices and common pitfalls for backup strategies. The content is purely informational and advisory, providing guidance on topics like ransomware protection, database backups, and retention policies. There is no executable code, shell commands, network requests, or any instructions that could be interpreted as a prompt injection attack against the AI agent or any other malicious behavior.
能力评估
Purpose & Capability
The name and description (backup strategies and restore testing) match the SKILL.md content. The skill requests no binaries, env vars, config paths, or installs — which is proportional for a guidance-only skill.
Instruction Scope
The SKILL.md contains prescriptive best practices and tool notes (rsync, restic, pg_dump, etc.) but does not instruct the agent to read arbitrary files, access environment variables, post data to external endpoints, or run destructive commands itself. It warns about dangerous options (e.g., rsync --delete).
Install Mechanism
No install spec and no code files are present. This is the lowest-risk pattern (instruction-only).
Credentials
The skill declares no required environment variables, credentials, or config paths. Nothing asks for unrelated or excessive secrets.
Persistence & Privilege
always is false and there is no indication the skill modifies agent/system configuration or requests persistent privileges. Autonomous model invocation is allowed by default but, given this skill is guidance-only, it does not increase risk.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install backups
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /backups 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug backups
版本 1.0.0
许可证
累计安装 7
当前安装数 6
历史版本数 1
常见问题

Backup 是什么?

Implement reliable backup strategies avoiding data loss, failed restores, and security gaps. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1398 次。

如何安装 Backup?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install backups」即可一键安装,无需额外配置。

Backup 是免费的吗?

是的,Backup 完全免费(开源免费),可自由下载、安装和使用。

Backup 支持哪些平台?

Backup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Backup?

由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.0。

💬 留言讨论