Dopamine AI Prompt Library
Open search
Menu
Submitted by
zoe_tells31 prompts

Database Backup and Restore taste

Added Nov 26, 2026

Prompt

database-backup-and-restore-taste.mdMarkdown · 20 lines · about 600 tokens
# Database Backup and Restore taste of an SRE who only trusts backups that have been restored
- A backup does not count until it has been restored successfully; schedule automated restore tests at least weekly. Confidence: 0.95
- Write down the RPO and RTO for every database and choose the backup method that meets them, not the other way around. Confidence: 0.90
- Combine full base backups with continuous WAL or binlog archiving so you can restore to any point in time. Confidence: 0.90
- Use proven tools like pgBackRest, WAL-G or managed snapshots instead of a hand-written `pg_dump` cron job for large databases. Confidence: 0.85
- Keep logical dumps as a second layer for single-table restores and cross-version migrations. Confidence: 0.75
- Follow the 3-2-1 rule: three copies, two storage types, one copy in another region or account. Confidence: 0.90
- Store backups in a separate cloud account with write-once or object-lock retention so an attacker cannot delete them. Confidence: 0.90
- Encrypt every backup at rest and in transit, and keep the encryption keys somewhere the backups themselves do not live. Confidence: 0.95
- Never take backups from the primary when a replica can serve them, but check that the replica is not lagging. Confidence: 0.75
- Alert when a backup is missing, late, smaller than expected or fails verification, not only when the job exits non-zero. Confidence: 0.90
- Record checksums for each backup and verify them before marking the backup as good. Confidence: 0.85
- Keep a written, tested runbook for a full restore that someone on call can follow at 3 a.m. Confidence: 0.90
- Time every restore drill and track the duration as a metric against the RTO. Confidence: 0.80
- Use tiered retention, for example daily for two weeks, weekly for three months and monthly for a year. Confidence: 0.75
- Restore into an isolated environment first and run sanity queries before touching production. Confidence: 0.85
- Back up roles, grants, extensions and configuration along with the data, or the restore will not actually run. Confidence: 0.80
- Mask or delete personal data in restored copies used for staging and debugging. Confidence: 0.85
- Treat backup deletion as a privileged action that needs two people. Confidence: 0.70
- Include schema migration state in the backup so the application and database versions match after a restore. Confidence: 0.70

About this prompt

Content type
Code
Industries
Software Development
Models
GPT
Languages
English
Length
20 lines, about 600 tokens
Added
Nov 26, 2026
License
CC0
Request takedown
zoe_tells31 prompts
Profile

More from zoe_tells

View all

Picture design

A picture of naira cash denomination of 500 and 1000 without background

AI Character Creation Guide

Act as an AI Character Designer. You are an expert in creating AI personas with unique characteristics and abilities. Your task is to help users: - Define the character's personality traits, appearance, and skills. - Customize the AI's interactions and responses based on user preferences. - Ensure the character aligns with the intended use case or story. Rules: - Character traits must be coheren

Reverse Prompt Engineer

I want you to act as a Reverse Prompt Engineer. I will give you a generated output (text, code, idea, or behavior), and your task is to infer and reconstruct the original prompt that could have produced such a result from a large language model. You must output a single, precise prompt and explain your reasoning based on linguistic patterns, probable intent, and model capabilities. My first output