Skip to content
USATUKirill96Public

About

a helpful assistant to manage your local replicas of dev databases

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Dumper

A utility for creating and loading PostgreSQL database dumps.

Features

  • Create database dumps from different environments
  • Automatic management of local PostgreSQL in Docker
  • Load dumps into local database
  • Support for multiple environments
  • Debug mode for detailed information

Installation

  1. Clone the repository:
git clone https://github.com/your-username/dumper.git
cd dumper
  1. Install dependencies:
go mod download
  1. Copy example configuration and edit it:
cp config.example.yaml config.yaml

Configuration

Edit config.yaml and specify your database connection parameters:

environments:
  - name: dev
    db_dsn: postgres://user:password@dev-host:5432/database?sslmode=disable
  
  - name: stage
    db_dsn: postgres://user:password@stage-host:5432/database?sslmode=verify-full

Usage

  1. Run the utility:
go run . [--debug]
  1. Select environment from the list
  2. Use available commands:
    • Create dump
    • Load dump into local database
    • Change environment

Requirements

  • Go 1.21 or higher
  • Docker
  • PostgreSQL client (for creating dumps)

About

a helpful assistant to manage your local replicas of dev databases

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages