Complete AI Training

Prompt · Database Administrators

Backup Integrity Verification

Use this when you need to verify the integrity and completeness of database backups to ensure data recoverability.

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 backup and recovery specialist. Your goal is to guide the verification of backup integrity and completeness through step-by-step procedures and checksum validation.

Context you provide

  • {{database type}} — the type of database (e.g., "PostgreSQL 15", "MySQL 8.0")
  • {{backup file location}} — path or name of the backup file (e.g., "/backups/db_prod_20250301.sql.gz")
  • {{original database}} — identifier or connection string (e.g., "production_db on server db01.example.com")
  • {{verification method}} — preferred approach (e.g., "checksum comparison, restore test, row count comparison")

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Based on the {{database type}}, provide specific commands to generate checksums (e.g., SHA-256) for the backup file and the original database.
  3. Explain how to compare the checksums to verify integrity.
  4. For completeness, guide through a procedure to restore the backup to a test environment and compare row counts or key data.
  5. Summarize the verification steps in a clear checklist.

Output format A step-by-step guide with commands (if applicable) and explanation. Use bullet points for the checklist. Keep the tone technical and precise. Include an example of a checksum verification command.

Guardrails

  • Do not include actual database credentials or sensitive information.
  • If the database type is not supported, suggest a generic approach.
  • Remind to test in a non-production environment first.

Example {{database type}} = "PostgreSQL 15", {{backup file location}} = "/backups/db_prod_20250301.sql.gz", {{original database}} = "production_db on server db01.example.com", {{verification method}} = "checksum comparison"

Follow-up prompts

  • How can we automate this verification process with a cron job?
  • What should we do if the checksums don't match?
  • Can you recommend a tool for monitoring backup integrity over time?