inline-dumper

Inline DB Dumper

The inline-dumper script is a Go program designed to dump MySQL database tables with various configurable options. It allows users to specify database connection details, choose whether to compress the output, generate checksums, and provide additional mysqldump configurations.

Features

Usage

  1. Clone the repository:

    git clone [email protected]:bmxmale/inline-dumper.git
    cd inline-dumper
    
  2. Build the script:

    # Build for Linux
    GOOS=linux GOARCH=amd64 go build -o bin/inline-dumper inline-dumper.go
       
    # Build for macOS with Apple M3 processor
    GOOS=darwin GOARCH=arm64 go build -o bin/inline-dumper inline-dumper.go
    
  3. Run the script:

    ./inline-dumper
    
  4. Follow the prompts:

    The script will prompt you for various inputs such as database host, user, password, port, and name. You will also be asked if you want to enable gzip compression, generate checksums, and provide extra mysqldump configurations.

Example

Configuration Options

Acknowledgements

This software was created with the strong support of GitHub Copilot ❤️, an AI-powered code completion tool that helps developers write code faster and with greater accuracy.

With :heart: from Poland 🇵🇱.