backup-dr

backup-dr is a skill for Claude Code from pwdev-solucoes/pwdev-claude-marketplace. It costs 81 tokens per session (798 once invoked), scanned A, original, Apache-2.0.

A guide to backups and disaster recovery, including snapshots, restores, retention, and point-in-time recovery (PITR). PITR means restoring a database to a chosen moment, which requires a continuous record of changes such as PostgreSQL WAL files.

In plain words
What is it for?
Use it to plan 3-2-1 backups, test restores, configure PostgreSQL dumps and WAL archiving, and review AWS recovery procedures.
Why use it?
It addresses the risk of discovering during a disaster that backups cannot be restored or do not cover the required time period. It helps match backup procedures to how much downtime and data loss the business can accept.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the pwdev-devops plugin — 19 skills, 5 commands, 4 agents shipped together

Good fit Use it to plan 3-2-1 backups, test restores, configure PostgreSQL dumps and WAL archiving, and review AWS recovery procedures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pwdev-solucoes/pwdev-claude-marketplace/backup-dr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pwdev-solucoes/pwdev-claude-marketplace --skill backup-dr
Clone the repo
git clone --depth 1 https://github.com/pwdev-solucoes/pwdev-claude-marketplace

Made for: Claude Code.

Or install pwdev-devops, the plugin that ships this one along with the rest of its 19 skills, 5 commands, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for backup-dr

README.md
[![agentmods](https://agentmods.dev/badge/skills/pwdev-solucoes/pwdev-claude-marketplace/backup-dr/github.svg)](https://agentmods.dev/skills/pwdev-solucoes/pwdev-claude-marketplace/backup-dr)
Your own site
<a href="https://agentmods.dev/skills/pwdev-solucoes/pwdev-claude-marketplace/backup-dr"><img src="https://agentmods.dev/badge/skills/pwdev-solucoes/pwdev-claude-marketplace/backup-dr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for backup-dr

Your own site · 80×15
<a href="https://agentmods.dev/skills/pwdev-solucoes/pwdev-claude-marketplace/backup-dr"><img src="https://agentmods.dev/badge/skills/pwdev-solucoes/pwdev-claude-marketplace/backup-dr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 798 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.00798
Opus 5 $0.00041 $0.00399
Sonnet 5 $0.00016 $0.00160
Haiku 4.5 $0.00008 $0.00080

Measured 7d ago against content hash b9e029e9fdf6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

backup-dr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/pwdev-devops/skills/backup-dr/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Backup & Disaster Recovery

Você garante que dá para voltar. É o domínio onde a falha só aparece no pior dia.

Princípio central

Backup nunca restaurado não é backup — é esperança.

A pergunta não é "temos backup?". É "quando foi o último restore testado, e quanto tempo levou?".

A regra 3-2-1

3 cópias do dado
2 mídias ou serviços diferentes
1 fora do local principal

Snapshot na mesma conta AWS não é cópia externa. Backup no mesmo storage Ceph do dado não protege contra falha do storage.

RTO e RPO

Termo Pergunta Define
RTO quanto tempo até voltar? procedimento e automação
RPO quanto dado posso perder? frequência do backup

RPO de 1 hora com backup diário é inconsistente. Se o negócio não aceita perder 24h, o backup diário não atende — e isso precisa ser dito.

PostgreSQL

pg_dump -Fc -d base > base.dump          # lógico
pg_restore -d base_nova base.dump        # teste em base separada

PITR exige WAL archiving contínuo (archive_mode=on). Sem WAL, o ponto de recuperação é o último dump — não existe "recuperar até 5 minutos atrás".

AWS

aws rds describe-db-snapshots --db-instance-identifier X
aws rds describe-db-instances --query 'DBInstances[].[DBInstanceIdentifier,BackupRetentionPeriod]'
aws s3api get-bucket-versioning --bucket X

Retenção 0 no RDS significa sem backup automático. Verifique sempre.

Teste de restore — o que importa

Trimestral, no mínimo. Registre:

Data: {{}} · Origem: {{backup de que dia}}
Destino: {{ambiente isolado}}
Tempo até restaurar: {{}}   ← este é o seu RTO real
Dado íntegro? {{verificação feita}}
Falhas encontradas: {{}}

RTO real é o que o teste mostrou, não o que está no documento.

Auditoria

  • Todo dado crítico tem backup?
  • Retenção atende a exigência legal e de negócio?
  • Existe cópia fora do local/conta principal?
  • Backup é criptografado?
  • Restore foi testado nos últimos 90 dias?
  • O procedimento está escrito e alguém além de uma pessoa sabe executar?
  • Backup é monitorado — alguém é avisado quando falha?

Read the full file on GitHub · 94 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 94 lines · 81 tokens per session scan A b9e029e9fdf6

Subscribe to this mod's changes

backup-dr is a skill published in the GitHub repository pwdev-solucoes/pwdev-claude-marketplace (2 stars, last pushed 4d ago), licensed Apache-2.0. It adds 81 tokens to every session and 798 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

cloud-sql-basics

This file generates or explains Cloud SQL resources. Use this file when the user asks to create a Cloud SQL instance or database for MySQL, PostgreSQL, or SQL Server. Cloud SQL manages third-party MySQL, PostgreSQL, and SQL Server instances as resources in Cloud SQL. For example, when Cloud SQL creates an open-source…

google/skills · 108 tokens

moai-platform-database-cloud

Cloud database platform specialist covering Neon (serverless PostgreSQL), Supabase (PostgreSQL 16 with real-time), and Firebase Firestore (NoSQL with offline sync). Use when choosing or setting up cloud databases.

modu-ai/moai-adk · 51 tokens

aws-rds

Manage Amazon RDS for fully managed relational databases. Provision MySQL, PostgreSQL, and Aurora instances with automated backups and patching. Configure read replicas for scaling, snapshots for recovery, and Aurora Serverless for variable workloads.

TerminalSkills/skills · 52 tokens

huawei-cloud-rds-smart-service

Huawei Cloud RDS (Relational Database Service) full-scenario intelligent service covering all database engines (MySQL, PostgreSQL, SQL Server, MariaDB, GaussDB for MySQL, TaurusDB). Provides six capability domains: (1) Basic intelligent Q&A for RDS product features, best practices, and specifications; (2) SQL…

huaweicloud/huaweicloud-skills · 330 tokens

add-backup-db

Add automated Neon database backups to the current project. Registers the project as a snapshot target of the unified shared Cloudflare Worker "hypervibe-jobs" (one Worker per account for ALL background jobs, reused across projects) that creates point-in-time Neon branch snapshots every 2 weeks. Retention - rolling (2…

flavien-ia/hypervibe-harness · 129 tokens

postgres

Configure DigitalOcean Managed Postgres with bindable variables or schema isolation. Use when setting up databases, creating users, managing permissions, configuring multi-tenant schemas, or troubleshooting database connectivity on App Platform.

digitalocean-labs/do-app-platform-skills · 42 tokens