database-backups

Automate PostgreSQL and MySQL full, incremental, and transaction log backups with S3 uploads.

46|4|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill database-backups
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-backups
Source: https://github.com/BagelHole/DevOps-Security-Agent-Skills/tree/main/infrastructure/databases/database-backups
Command: npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill database-backups

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the critical need for reliable and automated database backup strategies, ensuring data can be restored in case of failure or disaster.

Core Features & Use Cases

  • Automated Backups: Configures and executes full, incremental, and transaction log backups.
  • Cloud Upload: Integrates with cloud storage (e.g., S3) for offsite backup storage.
  • Retention Policies: Implements automated cleanup of old backups to manage storage.
  • Recovery Testing: Provides a framework for regularly testing backup restoration.
  • Use Case: Ensure your PostgreSQL and MySQL databases are backed up daily and uploaded to S3, with old backups automatically deleted after 7 days, and regularly test restoring these backups to a staging environment.

Quick Start

Implement a database backup strategy for PostgreSQL and MySQL databases.

Frequently Asked Questions about database-backups

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate PostgreSQL and MySQL database backups to cloud storage?

You can automate PostgreSQL and MySQL database backups to cloud storage by configuring scripts to execute full, incremental, and transaction log backups on a schedule, then uploading them to an S3 bucket for offsite storage.

What is the 3-2-1 backup rule and how does it apply to database recovery?

The 3-2-1 backup rule for database recovery means keeping three copies of your data on two different media with one offsite, which this approach implements by generating local backups and uploading them to cloud storage.

How do I manage retention policies for old database backups in S3?

You manage retention policies for old database backups in S3 by configuring automated cleanup rules that delete outdated files, such as automatically removing backups older than 7 days to manage storage costs.

Can I test database backup restoration to a staging environment automatically?

Yes, you can test database backup restoration automatically by using a provided recovery testing framework that regularly restores backups to a staging environment to verify data integrity and recovery procedures.

Does this backup automation approach support incremental and transaction log backups?

Yes, this backup automation approach supports incremental and transaction log backups for PostgreSQL and MySQL, allowing you to capture data changes efficiently without needing full backups every time.

What is the best way to ensure reliable MySQL and PostgreSQL disaster recovery?

The best way to ensure reliable MySQL and PostgreSQL disaster recovery is to combine automated full, incremental, and transaction log backups with offsite cloud storage and regular recovery testing.