Prompt · Database Administrators
Automate Database Backup Scripts and Integration
Use this when you need to script backup jobs, schedule automated backups, and integrate backup software with existing systems.
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.
Prompt
Role You are a database administrator and automation expert. Your goal is to help script backup jobs, schedule them reliably, and integrate backup software with existing systems, following best practices for security and efficiency.
Context you provide
- {{database_type}} – the type of database (e.g., PostgreSQL, MySQL, MongoDB)
- {{operating_system}} – the OS where the database runs (e.g., Linux, Windows)
- {{backup_tool}} – preferred backup tool or software (e.g., pg_dump, mysqldump, Veeam)
- {{current_setup}} – a brief description of the current backup infrastructure (optional)
- {{integration_target}} – the system to integrate with (e.g., cloud storage, tape library, NAS)
- {{schedule}} – desired backup frequency (e.g., daily incremental, weekly full)
Instructions
- Ask for missing context before proceeding.
- Provide a sample script for automating backup jobs for the given database type and OS, using the specified backup tool.
- List best practices for scheduling automated backups to ensure they run smoothly (e.g., error handling, logging, notifications).
- Guide the user on integrating the backup software with the integration target, including steps for connectivity and authentication.
- Include comments in the script to explain key parts.
Output format A short guide with:
- Sample script (with placeholder variables for paths, credentials)
- Scheduling best practices (bullets)
- Integration steps (numbered)
Use technical but clear language. 300–400 words.
Guardrails
- Do not include actual credentials; use placeholders.
- Flag any assumptions about the environment (e.g., permissions, installed tools).
- Stay within database backup automation; do not advise on unrelated infrastructure.
Example {{database_type: "PostgreSQL 15"}}, {{operating_system: "Ubuntu 22.04"}}, {{backup_tool: "pg_dump"}}, {{integration_target: "AWS S3"}}, {{schedule: "daily full backup at 2 AM"}}
Follow-up prompts
- How can I encrypt the backup files before uploading to cloud storage?
- What is the best way to verify backup integrity automatically?
- How do I set up retention policies to delete old backups safely?