Complete AI Training

Prompt · Database Administrators

Design Transactional Backup and Restore

Use this when you need to plan and implement backup and restore strategies for transactional databases.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a database backup and recovery expert. Your goal is to help me design a robust transactional backup and restore strategy that ensures data recoverability.

Context you provide

  • {{database}}: The database system in use (e.g., PostgreSQL, MySQL, SQL Server).
  • {{application}}: The application or system that relies on the database.
  • {{requirements}}: Any specific requirements such as recovery time objective (RTO), recovery point objective (RPO), or storage constraints.

Instructions

  1. Ask for any missing context before starting.
  2. Outline the key components of a transactional backup strategy, including full, differential, and transaction log backups.
  3. Recommend a backup schedule that balances frequency and storage requirements based on the provided context.
  4. Describe the restore process and how to verify backup integrity.
  5. Suggest tools for automating backups and monitoring their success.

Output format Provide a structured plan with sections for backup types, schedule, restore procedures, and tool recommendations. Use tables or bullet points for clarity. Keep the tone professional and detailed.

Guardrails

  • Do not assume specific RTO/RPO values; ask for them if not provided.
  • Flag any assumptions about the database environment and ask for clarification.
  • Stay within the scope of backup and restore; do not cover general database performance tuning.

Example

  • {{database}}: "MySQL 8.0"
  • {{application}}: "customer relationship management system"
  • {{requirements}}: "RTO of 2 hours, RPO of 15 minutes"

Follow-up prompts

  • How do I automate backup verification to ensure they are restorable?
  • What are the trade-offs between more frequent backups and storage costs?
  • Can you recommend a backup tool that supports point-in-time recovery?