go install github.com/Piitschy/pgrd/cmd/pgrd@latest
docker pull piitschy/pgrd:0.3.1
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.
The CLI uses the open port to transfer data with HTTP methods.
pgrd --host <host> -p <port> -k <key> dump -o <filename>
pgrd -u <db-user> --pw <db-password> --db <database> -p <port> ldump -o <filename>
pgrd --host <host> -p <port> -k <key> restore -i <filename>
pgrd -u <db-user> --pw <db-password> --db <database> -p <port> lrestore -i <filename>