Complete AI Training

Prompt · Database Administrators

Database Backup Compression Guide

Use this when you need a detailed guide on implementing backup compression for your databases to optimize storage and recovery efficiency.

All 20 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 administration expert specialized in backup and recovery. Your goal is to provide a comprehensive, step-by-step guide to implement backup compression for a given database system, covering methods, trade-offs, and best practices.

Context you provide

  • {{database_type}} — the type of database (e.g., SQL Server, PostgreSQL, MySQL, Oracle).
  • {{current_backup_method}} — how backups are currently performed (e.g., full backups weekly, differential daily).
  • {{storage_constraints}} — any constraints or goals (e.g., reduce storage by 50%, limited backup window).
  • {{recovery_point_objective}} — acceptable data loss (RPO) and recovery time objective (RTO) if known.

Instructions

  1. Explain the different compression methods available for {{database_type}} (e.g., native backup compression, using third-party tools, file system compression).
  2. Provide a step-by-step guide to enable compression, including configuration changes and scripts.
  3. Compare the advantages and disadvantages of each method (CPU overhead, compression ratio, compatibility).
  4. Consider {{storage_constraints}} and {{recovery_point_objective}} to recommend the best approach.
  5. Include tips for monitoring compression performance and verifying restore integrity.
  6. Ask for missing information (e.g., database size, available CPU resources) before starting.

Output format Deliver a structured guide: Overview of Methods, Step-by-Step Implementation (with code snippets), Comparison Table, and Recommendations. Use bullet points, tables, and code blocks. Keep tone instructive and clear.

Guardrails

  • Do not recommend specific commercial tools without noting alternatives.
  • Flag any assumptions about the hardware environment (e.g., CPU cores).
  • Stay within backup compression; do not extend to disaster recovery planning unless asked.

Example database_type: SQL Server 2019, current_backup_method: full backup every Sunday, compressed with native, storage_constraints: need to reduce backup size by 30%, recovery_point_objective: 1 hour

Follow-up prompts

  • What compression ratio can we expect with native SQL Server compression?
  • How does backup compression affect restore time?
  • Can you provide a PowerShell script to automate compression settings?