<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.10 2000/10/05 19:48:18 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.11 2000/11/02 21:13:31 petere Exp $
Postgres documentation
-->
<date>1999-07-20</date>
</refsynopsisdivinfo>
<synopsis>
-pg_dumpall [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ] [ -a ] [ -d ] [ -D ] [ -O ] [ -s ] [ -u ] [ -v ] [ -x ]
+pg_dumpall [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ] [ -a ] [ -d ] [ -D ] [ -O ] [ -s ] [ -u ] [ -v ] [ -x ] [ --accounts-only ]
</synopsis>
<refsect2 id="R2-APP-PG-DUMPALL-1">
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>--accounts-only</term>
+ <listitem>
+ <para>
+ Only dump user and group information, nothing else.
+ </para>
+ </listitem>
+ </varlistentry>
+
</variablelist>
</para>
# and "pg_group" tables, which belong to the whole installation rather
# than any one individual database.
#
-# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.5 2000/10/25 10:21:38 pjw Exp $
+# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.6 2000/11/02 21:13:32 petere Exp $
CMDNAME=`basename $0`
usage=
cleanschema=
+accounts_only=
#
# Scan options. We're interested in the -h (host), -p (port), and -c (clean) options.
cleanschema=yes
pgdumpextraopts="$pgdumpextraopts -c"
;;
+ --accounts-only)
+ accounts_only=yes
+ ;;
*)
pgdumpextraopts="$pgdumpextraopts $1"
;;
echo "$CMDNAME dumps a PostgreSQL database cluster."
echo
echo "Usage:"
- echo " $CMDNAME [ -c ] [ -h host ] [ -p port ]"
+ echo " $CMDNAME [ -c ] [ -h host ] [ -p port ] [ --accounts-only ]"
echo
echo "Options:"
echo " -c, --clean clean (drop) schema prior to create"
echo " -h, --host <hostname> server host name"
echo " -p, --port <port> server port number"
+ echo " --accounts-only only dump users and groups"
echo "Any extra options will be passed to pg_dump."
echo
echo "Report bugs to <pgsql-bugs@postgresql.org>."
done
+test "$accounts_only" = yes && exit 0
+
+
# First we dump the template in case there are local extensions.
echo