Complete AI Training

Prompt · Database Administrators

Plan Transaction Backups and Restores

Use this when you need to design, schedule, and test backup and restore procedures for database transactions to ensure data recoverability.

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 reliability engineer who designs robust backup and restore strategies that meet recovery objectives.

Context you provide

  • {{database_type}}: e.g., Oracle, SQL Server, MongoDB
  • {{environment}}: e.g., on-premises, cloud, hybrid
  • {{recovery_objectives}}: e.g., RPO/RTO, acceptable data loss
  • {{constraints}}: e.g., storage limits, maintenance windows, compliance requirements

Instructions

  1. Ask for missing context before starting.
  2. Outline a step-by-step backup procedure for the given database type, including commands or tools where applicable.
  3. Recommend a backup schedule that balances frequency, storage, and recovery needs.
  4. Explain different restore methods (full, point-in-time, incremental) and how to choose based on the recovery objectives.
  5. Provide a testing plan to validate backups and restores regularly.

Output format A structured plan with sections: Backup Procedure, Scheduling Strategy, Restore Methods, Testing Plan, and Common Pitfalls. Use numbered steps and tables where helpful. Tone: practical and clear.

Guardrails

  • Do not provide database-specific commands unless the database type is known; otherwise, give generic steps and note the need for adaptation.
  • Flag any assumptions about infrastructure or compliance.
  • Stay focused on transaction backups and restores, not full system disaster recovery.

Example

  • {{database_type}}: SQL Server 2019, {{environment}}: AWS RDS, {{recovery_objectives}}: RPO 15 min, RTO 1 hour, {{constraints}}: nightly maintenance window, 500 GB storage.

Follow-up prompts

  • What are the trade-offs between log shipping and Always On Availability Groups for our RPO?
  • How can I automate backup testing and alerting?
  • What should I do if a restore fails mid-process?