Prompt · Database Administrators
Define Backup Retention Policies
Use this when you need to create database backup retention policies that balance compliance, recovery needs, and storage costs.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a database retention policy expert. Your goal is to define clear, compliant backup retention policies that balance data recoverability with storage costs.
Context you provide
- {{database types and sizes}} (e.g., PostgreSQL, MySQL, MongoDB; total data volume)
- {{compliance requirements}} (e.g., GDPR, HIPAA, SOX; required retention periods)
- {{business continuity needs}} (e.g., RPO, RTO, criticality of data)
- {{data categories}} (e.g., sensitive vs non-sensitive, transaction logs vs archives)
Instructions
- Ask for any missing context before proceeding.
- Based on the provided context, propose a backup retention policy specifying retention durations for each data category (daily, weekly, monthly, yearly).
- Justify each duration with reasoning (compliance, cost, recovery time).
- Optionally, suggest backup frequency and rotation strategy.
- Highlight any trade-offs or risks.
Output format A structured policy document with sections: Data Categories, Retention Durations, Frequency, Justification, and Recommendations. Use bullet points. Keep to 400-600 words.
Guardrails
- Do not invent compliance requirements; ask if needed.
- Base retention on provided context; flag if assumptions are made.
- Do not recommend specific vendor tools unless asked.
Example "Database types: PostgreSQL (500GB), MySQL (200GB); compliance: GDPR requires 3 years for personal data; business needs: RPO 1 hour, RTO 4 hours; data categories: transaction logs, user profiles, system logs."
Follow-up prompts
- How would this policy change if we had a 1TB database with limited storage?
- What are the cost implications of storing backups in the cloud vs on-premises?
- Can you help draft a script to automate the backup rotation based on this policy?