operating-backup

Back up and restore AWS RDS and PostgreSQL databases via snapshots and pg_dump.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/k2works/getting-started-algorithm --skill operating-backup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: operating-backup
Source: https://github.com/k2works/getting-started-algorithm/tree/main/.agents/skills/operating-backup
Command: npx skills add https://github.com/k2works/getting-started-algorithm --skill operating-backup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide reliable, consistent backups and restores for relational databases to reduce data loss, enable safe deployments, and shorten recovery time after failures.

Core Features & Use Cases

  • Automated snapshots with AWS Backup: schedule daily and weekly snapshots for RDS instances tagged Backup="true" with defined retention policies.
  • Manual schema-level backups via SSH tunnel: connect through a bastion host to run pg_dump for targeted schema exports.
  • Restores from dumps and snapshots: use pg_restore for dump files or AWS Backup to recover a new RDS instance and switch application endpoints.
  • Use Cases: pre-deployment backups, emergency recovery, and migrating schema changes between environments.

Quick Start

Create an automated AWS Backup plan for RDS instances tagged Backup="true" and perform a manual schema backup over an SSH tunnel using pg_dump before risky changes.

Frequently Asked Questions about operating-backup

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

FAQPage Schema
How do I automate AWS RDS database backup and restore operations?

Automate RDS database backup using AWS Backup to schedule daily and weekly snapshots for instances tagged Backup="true" with defined retention policies. Restore operations recover a new RDS instance from these snapshots and switch application endpoints during deployment or recovery scenarios.

Can I run pg_dump for a PostgreSQL schema over an SSH tunnel?

Run pg_dump for PostgreSQL schema exports by connecting through a bastion host via an SSH tunnel. This manual schema-level backup approach targets specific schemas for export, requiring SSH access to the bastion host and local availability of PostgreSQL pg_dump tools.

What permissions do I need for AWS Backup and RDS snapshot restores?

AWS Backup and RDS snapshot restores require specific IAM permissions for AWS Backup management and RDS instance recovery. Additionally, performing manual schema dumps over SSH tunnels requires SSH access to bastion hosts and PostgreSQL pg_dump and pg_restore tools installed locally.

What is the best way to back up a database before risky deployments?

The best way to back up a database before risky deployments is combining automated AWS Backup snapshots with manual pg_dump schema exports over SSH tunnels. This dual approach ensures both full instance recovery points and targeted schema backups for migrating changes between environments.

How do I restore a PostgreSQL database from a dump file using pg_restore?

Restore a PostgreSQL database from a dump file using pg_restore to recover schema-level exports created by pg_dump. This process handles dump files generated through SSH tunnel connections to bastion hosts, enabling recovery during deployment scenarios or emergency restoration.

When should I use AWS Backup snapshots instead of manual pg_dump exports?

Use AWS Backup snapshots for automated daily and weekly RDS instance-level backups with retention policies, and use manual pg_dump exports for targeted schema-level backups before specific risky changes. AWS Backup handles full instance recovery while pg_dump enables granular schema migration between environments.