Commit 28e9e9a2 authored by Peter Eisentraut's avatar Peter Eisentraut

Rename --accounts-only to --globals-only, polish documentation.

parent f824d4a3
This diff is collapsed.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# and "pg_group" tables, which belong to the whole installation rather # and "pg_group" tables, which belong to the whole installation rather
# than any one individual database. # than any one individual database.
# #
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.8 2000/11/14 18:37:46 tgl Exp $ # $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.9 2000/12/19 22:12:47 petere Exp $
CMDNAME=`basename $0` CMDNAME=`basename $0`
...@@ -72,7 +72,7 @@ fi ...@@ -72,7 +72,7 @@ fi
usage= usage=
cleanschema= cleanschema=
accounts_only= globals_only=
# #
# Scan options. We're interested in the -h (host), -p (port), and -c (clean) options. # Scan options. We're interested in the -h (host), -p (port), and -c (clean) options.
...@@ -110,8 +110,8 @@ while [ $# -gt 0 ] ; do ...@@ -110,8 +110,8 @@ while [ $# -gt 0 ] ; do
cleanschema=yes cleanschema=yes
pgdumpextraopts="$pgdumpextraopts -c" pgdumpextraopts="$pgdumpextraopts -c"
;; ;;
--accounts-only) --globals-only)
accounts_only=yes globals_only=yes
;; ;;
*) *)
pgdumpextraopts="$pgdumpextraopts $1" pgdumpextraopts="$pgdumpextraopts $1"
...@@ -122,16 +122,16 @@ done ...@@ -122,16 +122,16 @@ done
if [ "$usage" ] ; then if [ "$usage" ] ; then
echo "$CMDNAME dumps a PostgreSQL database cluster." echo "$CMDNAME extracts a PostgreSQL database cluster into an SQL script file."
echo echo
echo "Usage:" echo "Usage:"
echo " $CMDNAME [ -c ] [ -h host ] [ -p port ] [ --accounts-only ]" echo " $CMDNAME [ -c ] [ -h HOSTNAME ] [ -p PORT ] [ --globals-only ]"
echo echo
echo "Options:" echo "Options:"
echo " -c, --clean clean (drop) schema prior to create" echo " -c, --clean Clean (drop) schema prior to create"
echo " -h, --host <hostname> server host name" echo " -h, --host=HOSTNAME Server host name"
echo " -p, --port <port> server port number" echo " -p, --port=PORT Server port number"
echo " --accounts-only only dump users and groups" echo " --globals-only Only dump global objects, no databases"
echo "Any extra options will be passed to pg_dump." echo "Any extra options will be passed to pg_dump."
echo echo
echo "Report bugs to <pgsql-bugs@postgresql.org>." echo "Report bugs to <pgsql-bugs@postgresql.org>."
...@@ -184,7 +184,7 @@ while read GRONAME GROSYSID GROLIST ; do ...@@ -184,7 +184,7 @@ while read GRONAME GROSYSID GROLIST ; do
done done
test "$accounts_only" = yes && exit 0 test "$globals_only" = yes && exit 0
# For each database, run pg_dump to dump the contents of that database. # For each database, run pg_dump to dump the contents of that database.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment