Skip to main content

Claude Prompt to Plan Database Backup and Disaster Recovery

Design a complete DB backup and recovery strategy: automated backups, point-in-time recovery, cross-region replication, and DR testing.

Vul de plaatshouders in

Edit the values, then copy your finished prompt.

Jouw Prompt
prompt.txt

                                

What this prompt does

This prompt designs a full backup and disaster recovery strategy for your [database_type], sized to your current [db_size] and [growth_rate]. It defines which [backup_types] to run with retention policies, an automated [backup_schedule], point-in-time recovery configuration, and cross-region replication to your [dr_region]. It anchors the whole plan to explicit [rto] and [rpo] targets so recovery expectations are measurable, not aspirational.

The structure works because it treats an untested backup as no backup at all. Alongside the backup mechanics, it asks for verification and integrity testing, a step-by-step restoration runbook, a failover procedure, and a DR drill schedule. By forcing real [rto] and [rpo] numbers and a rehearsal checklist, it turns vague "we have backups" confidence into a recovery plan you can actually execute under pressure. It also covers backup encryption and access control, monitoring alerts for backup failures, and a storage cost estimate sized to your [db_size] and [growth_rate], so the plan is not only technically sound but accounts for who can touch the backups and what they cost as your data grows. An automated DR-testing pipeline keeps the rehearsal honest instead of a once-a-year ritual.

When to use it

  • You run a production [database_type] and have never formally tested a restore.
  • You need to document [rto] and [rpo] targets for stakeholders or compliance.
  • Your data is growing at [growth_rate] and you need a retention and storage-cost plan.
  • You want cross-region replication to [dr_region] configured deliberately, not as an afterthought.
  • You need a restoration runbook with concrete commands before an outage forces improvisation.
  • You want a recurring DR drill schedule so recovery skills stay sharp.

Example output

Expect a structured DR plan: a backup strategy section mapping [backup_types] to retention windows, a scheduling section for the [backup_schedule], PITR and replication configuration toward [dr_region], and an explicit RTO/RPO section. The most valuable parts are usually the step-by-step restoration runbook, the failover procedure, a storage cost estimate, and a DR drill checklist you can run on a cadence.

Pro tips

  • Provide accurate [db_size] and [growth_rate]; retention and storage-cost estimates are only useful when the numbers reflect reality.
  • Set honest [rto] and [rpo] targets based on what the business can tolerate, not what sounds impressive, because they drive the entire design.
  • Choose [backup_types] that match your engine; WAL archiving and PITR pair naturally with PostgreSQL, while other databases have their own mechanisms.
  • Treat the restoration runbook as something to rehearse, not file away; the first real restore should not be your first attempt.
  • Confirm [dr_region] is genuinely independent of your primary so a regional outage cannot take both down.
  • Iterate by running the generated DR drill checklist, noting where it breaks, and feeding those gaps back for a tighter runbook.

Frequently Asked Questions

Does this prompt set up the backups for me?
No, it designs the strategy, schedules, configuration, and runbooks. You still implement the backups, replication, and automation in your own environment. The real value is the planning and the restoration runbook, which you must then test against a live restore before trusting it.
How do RTO and RPO affect the plan?
They are the core drivers. A tight `[rpo]` like five minutes pushes toward continuous WAL archiving or streaming replication, while a tight `[rto]` shapes failover automation and standby readiness. Setting them honestly determines cost and complexity, so the prompt builds the rest of the design around those numbers.
Can it plan recovery for databases not on AWS RDS?
Yes. The `[database_type]` variable accepts self-managed PostgreSQL, MySQL, managed cloud databases, and others. The backup mechanisms, PITR approach, and replication details will change to match your platform, but the overall RTO/RPO-driven structure and the emphasis on tested restores stay the same.
Why does it insist on DR drills if backups already exist?
Because backups that have never been restored often fail when you need them, due to corruption, missing steps, or untested permissions. The drill schedule and checklist exist to catch those problems in a calm rehearsal rather than during a real outage, which is when recovery actually matters.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

Meer in Data & SQL Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support