From: Sebastian Harl Date: Mon, 12 Nov 2012 10:38:43 +0000 (+0100) Subject: pgtest.sh: Added dump/restore commands. X-Git-Url: https://git.tokkee.org/?p=postrr.git;a=commitdiff_plain;h=25f71c21c10c5dcb6c8a8ebf20987becf424b867 pgtest.sh: Added dump/restore commands. --- diff --git a/pgtest.sh b/pgtest.sh index 8cbb27c..d911b5c 100755 --- a/pgtest.sh +++ b/pgtest.sh @@ -96,6 +96,14 @@ case "$1" in restart) $0 stop && $0 start -B ;; + dump) + shift + $BIN_DIR/pg_dump -h $TARGET/var/run/postgresql/ -p 2345 "$@" + ;; + restore) + shift + $BIN_DIR/pg_restore -h $TARGET/var/run/postgresql/ -p 2345 "$@" + ;; *) echo "Usage: $0 setup|client|stop|start" >&2 echo ""