Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 825 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 825 Bytes

pgrd

Installation

CLI

go install github.com/Piitschy/pgrd/cmd/pgrd@latest

Server side component

docker pull piitschy/pgrd:0.3.1

Server

Simply add the server to your Docker stack alongside a Postgres instance - you can specify all important configurations through the environment.

A port must be exposed on 3000.

CLI

The CLI uses the open port to transfer data with HTTP methods.

dump

pgrd --host <host> -p <port> -k <key> dump -o <filename>

local dump

pgrd -u <db-user> --pw <db-password> --db <database> -p <port> ldump -o <filename>

restore

pgrd --host <host> -p <port> -k <key> restore -i <filename>

local restore

pgrd -u <db-user> --pw <db-password> --db <database> -p <port> lrestore -i <filename>