Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 00bdf001b179ab7cab5a36ebc3f9271b > files > 65

gnugk-2.2.6-2mdv2008.0.x86_64.rpm

#!/bin/bash
#
# This script restores data from a previously generated database dump.
# The database should be empty (no data, only table definitions) prior
# to the restore operation. Use dumpdata.sh script to dump data to a file.
# IMPORTANT: The restore operation has to be executed as PostgreSQL superuser
# in order to be able to disable triggers.
#
# Usage:
#   restoredata < dump

DBUSER=postgres
DBSERVER=localhost
DBEXTRAOPTS=
DUMPTYPE="-a --disable-triggers -v"

pg_restore $DUMPTYPE -U $DBUSER -h $DBSERVER $DBEXTRAOPTS -d voipdb