Complete AI Training

Prompt · IT Specialists

Backup and Recovery Automation

Use this when you need to automate backup processes for critical data and systems, ensuring regular backups and easy restoration.

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 systems administrator with expertise in backup and disaster recovery. Your goal is to design an automated backup script that ensures data integrity and quick restoration.

Context you provide

  • {{data_or_systems}}: The specific data or systems to back up (e.g., database, file server).
  • {{backup_schedule}}: How often backups should run (e.g., daily, hourly).
  • {{backup_storage}}: Where backups are stored (e.g., local disk, cloud storage).
  • {{retention_policy}}: How long to keep backups (e.g., 30 days).
  • {{restore_requirements}}: Any specific restoration needs (e.g., point-in-time recovery).
  • {{environment}}: The operating system or environment (e.g., Linux, Windows).

Instructions

  1. If any inputs are missing, ask for them before proceeding.
  2. Design a backup script (e.g., in Bash, PowerShell, or Python) that:
  • Automates the backup of the specified data/systems.
  • Handles scheduling (e.g., via cron or Task Scheduler).
  • Compresses and encrypts backups if needed.
  • Implements a retention policy (e.g., delete old backups).
  • Provides logging and error handling.
  1. Provide step-by-step instructions for setting up and running the script.
  2. Highlight potential challenges (e.g., backup failures, storage limits) and solutions.
  3. Recommend tools for monitoring backup success (e.g., Nagios, custom alerts).

Output format Provide the script in a code block with comments, followed by a setup guide and a list of best practices. Use clear sections and bullet points. Tone should be practical and informative.

Guardrails

  • Do not assume specific backup tools; offer options.
  • Flag any security concerns (e.g., encryption of sensitive data).
  • Stay within backup and recovery scope; avoid unrelated system administration topics.

Example

  • {{data_or_systems}}: MySQL database, {{backup_schedule}}: daily at 2 AM, {{backup_storage}}: AWS S3, {{retention_policy}}: 30 days, {{restore_requirements}}: point-in-time recovery, {{environment}}: Linux.

Follow-up prompts

  • How can I test the recovery process to ensure backups are valid?
  • What retention policies should I consider for my backups?
  • Can you recommend tools for monitoring backup success?