mg-local-db-restore

Restore local PostgreSQL databases from .dump backups with health checks.

106|4|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/modelguide/modelguide --skill mg-local-db-restore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mg-local-db-restore
Source: https://github.com/modelguide/modelguide/tree/main/.claude/skills/mg-local-db-restore
Command: npx skills add https://github.com/modelguide/modelguide --skill mg-local-db-restore

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides automated local database restoration processes, simplifying the recovery of database states and ensuring data integrity.

Core Features & Use Cases

  • Database Restoration: Restores local databases using a specified backup file or default .dump.gz file in a defined directory.
  • Postgres Compatibility: Designed specifically for restoring PostgreSQL databases.
  • User Confirmation: Ensures all actions are confirmed before execution to prevent data loss.
  • Health Check Verification: Verifies that the database is healthy after restoration.
  • Use Case: Ideal for systems where data recovery is critical and the process needs to be automated for efficiency and accuracy.

Quick Start

Use the mg-local-db-restore skill to restore your local database from the most recent backup.

Frequently Asked Questions about mg-local-db-restore

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

FAQPage Schema
How do I restore a local PostgreSQL database from a .dump file?

To restore a local PostgreSQL database from a .dump file, you can automate the process using scripts that target the specified backup file or default .dump.gz file in your directory, ensuring accurate data recovery.

Do I need Docker and Postgres installed to automate local database restoration?

Yes, you need Docker and Postgres installed and configured correctly on your system to automate local database restoration processes and ensure database data is accurately and securely recovered after failure.

Can I prevent data loss when restoring a local Postgres database?

You can prevent data loss during local Postgres database restoration by utilizing built-in user confirmation steps that ensure all actions are verified before execution, halting the process if confirmation is not provided.

How do I verify my Postgres database is healthy after a restoration?

To verify your Postgres database is healthy after restoration, you can run automated health check validations that confirm the database state is fully recovered and operational without manual inspection.

What is the best way to automate recovering local database states after a failure?

The best way to automate recovering local database states after a failure is using scripted restoration processes designed for PostgreSQL, which securely recover data from .dump backups and perform post-restoration validation.

Does local database restoration support compressed .dump.gz backup files?

Yes, local database restoration supports compressed .dump.gz backup files by allowing the automated scripts to target either a user-specified backup file or the default .dump.gz file located in a defined directory.