Skip to content
Back to skills

Backups

ASecurity

Implement reliable backup strategies avoiding data loss, failed restores, and security gaps.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
securitygosqldatabasesecuritydocumentation

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add clawic/skills --skill backups --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Backups?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Backups
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/clawic-backups/badge)](https://www.skillsdirectory.com/skills/clawic-backups)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Backup
slug: backups
version: 1.0.0
description: Implement reliable backup strategies avoiding data loss, failed restores, and security gaps.
homepage: https://clawic.com/skills/backups
metadata:
  clawdbot:
    emoji: ๐Ÿ’พ
    os:
    - linux
    - darwin
    - win32
    displayName: Backup
---

## 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

Files in this skill

  • SKILL.md3.7 KB
  • _meta.json165 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading commentsโ€ฆ

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.