2002-06-24 05:58:08 +08:00
|
|
|
#########################################################################
|
|
|
|
# Config file for DBMirror.pl
|
|
|
|
# This file contains a sample configuration file for DBMirror.pl
|
|
|
|
# It contains configuration information to mirror data from
|
|
|
|
# the master database to a single slave system.
|
|
|
|
#
|
2004-09-10 12:31:06 +08:00
|
|
|
# $PostgreSQL: pgsql/contrib/dbmirror/slaveDatabase.conf,v 1.3 2004/09/10 04:31:06 neilc Exp $
|
2002-06-24 05:58:08 +08:00
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
$masterHost = "masterMachine.mydomain.com";
|
|
|
|
$masterDb = "myDatabase";
|
|
|
|
$masterUser = "postgres";
|
|
|
|
$masterPassword = "postgrespassword";
|
|
|
|
|
|
|
|
# Where to email Error messages to
|
|
|
|
# $errorEmailAddr = "me@mydomain.com";
|
|
|
|
|
2004-09-10 12:31:06 +08:00
|
|
|
$slaveInfo->{"slaveName"} = "backupMachine";
|
2002-06-24 05:58:08 +08:00
|
|
|
$slaveInfo->{"slaveHost"} = "backupMachine.mydomain.com";
|
|
|
|
$slaveInfo->{"slaveDb"} = "myDatabase";
|
2004-09-10 12:31:06 +08:00
|
|
|
$slaveInfo->{"slavePort"} = 5432;
|
2002-06-24 05:58:08 +08:00
|
|
|
$slaveInfo->{"slaveUser"} = "postgres";
|
|
|
|
$slaveInfo->{"slavePassword"} = "postgrespassword";
|
2004-09-10 12:31:06 +08:00
|
|
|
# If uncommented then text files with SQL statements are generated instead
|
|
|
|
# of connecting to the slave database directly.
|
|
|
|
# slaveDb should then be commented out.
|
|
|
|
# $slaveInfo{"TransactionFileDirectory"} = '/tmp';
|
2002-06-24 05:58:08 +08:00
|
|
|
|
2004-09-10 12:31:06 +08:00
|
|
|
#
|
|
|
|
# The number of seconds dbmirror should sleep for between checking to see
|
|
|
|
# if more data is ready to be mirrored.
|
|
|
|
$sleepInterval = 60;
|
|
|
|
|
|
|
|
#If you want to use syslog
|
|
|
|
# $syslog = 1;
|