Skip to content

iseth/pg-snap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pg_snap

pg_snap adds support for PostgreSQL database snapshots. Snapshot the database before making changes to the schema or data, and restore it if something goes wrong.

Prerequisites

  • PostgreSQL installed and running
  • Bash shell

Installation

sh -c "$(curl -fsSL https://raw.githubusercontent.com/iseth/pg-snap/master/tools/install.sh)"

Usage

To use pg_snap, follow the steps below: Run the script with the desired command and options. Available commands are:

  • -l or --list: List all available snapshots.
  • -c or --create: Create a new snapshot.
  • -r or --restore: Restore a snapshot.
  • -db or --db-name: Set the name of the database to work with.
  • -v or --version: Display the script version.

Example usage:

./pg_snap -db statecert_development --list
./pg_snap -db statecert_development --create
./pg_snap -db statecert_development --restore

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages