repository
0.0.0-20240603073415-b62e24142162
Repository: https://github.com/piitschy/pgrd.git
Documentation: pkg.go.dev
# README
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>