Skip site navigation (1) Skip section navigation (2)

Re: Failover of the Primary database and starting the standby database in Postgresql in PITR configuraiton?

From: Michael Monnerie <michael(dot)monnerie(at)it-management(dot)at>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Failover of the Primary database and starting the standby database in Postgresql in PITR configuraiton?
Date: 2008-03-26 00:25:51
Message-ID: 200803260125.51185@zmi.at (view raw or flat)
Thread:
Lists: pgsql-admin
On Mittwoch, 27. Februar 2008 salman wrote:
> archive_command = 'gzip %p; rsync -av %p.gz -e \"ssh -p portNum -i
> /home/postgres/.ssh/id_dsa\"
> postgres(at)rhostname:/usr/local/postgresql/archives/recovery/%f.gz &&
> rm -f %p.gz'

This works as long as there are no transmission errors. What can be done 
to work around network problems? Example: when one rsync above does not 
work, that log is never transmitted to the other host. Does somebody 
have a sophisticated script for that?

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846 914 666                      .network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: AC19 F9D5 36ED CD8A EF38  500E CE14 91F7 1C12 09B4
// Keyserver: www.keyserver.net                   Key-ID: 1C1209B4

In response to

pgsql-admin by date

Next:From: EnricoDate: 2008-03-26 08:45:33
Subject: Re: migration of 7.4 to 8.1
Previous:From: Stephan SzaboDate: 2008-03-25 20:27:00
Subject: Re: Deferred Constraints Issues

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group