From 25f71c21c10c5dcb6c8a8ebf20987becf424b867 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 12 Nov 2012 11:38:43 +0100 Subject: [PATCH] pgtest.sh: Added dump/restore commands. --- pgtest.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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 "" -- 2.30.2