Dear all,

I have been playing with PITR on version 8.3 so far, but I need to get it 
working on version 8.2.

What is the difference between:

archive_command = on  (is this command for 8.2?)
archive_mode =    on  (This one is for 8.3!)

I need to enable 'archive_mode = on', restart postgres, before I can do the 
base backup, is that correct?

In order to bring the standby online I need a trigger file, something like:
can I call the trigger file whatever I want? for example; 
'/var/log/postgres/postgresql.8.2.trigger'

Postgres 8.2 config

Master:
        Postgresql.conf
               archive_command = on
               archive_command = 'cp -i %p /mnt/pitr/%f </dev/null'
               archive_timeout = 60

        # mkdir /mnt/pitr
        # chown postgres: /mnt/pitr (this will be an NFS mount point)
        # mount -t nfs fnsserver01:/pitr /mnt/pitr
        # service postgresql restart
        # su - postgres
        # psql -U postgres
                SELECT pg_start_backup('pitr_backup');
                \q
        # Tar -cvf pg_data.tar /usr/loca/pgsql/data
        # Psql -U postgres
                SELECT pg_stop_backup();
        # cp pg_data.tar /mnt/pitr


Postgres 8.2 config

StandBy:
        # Compile pg_standy from the contrib/ folder
        # cd /usr/local/pgsql
        # rm -rf data/
        # tar -xvf /mnt/pitr/pg_data.tar
        # chown -R postgres: data
        # cd data/
        # cd pg_xlog/ - delete the content
        # cd ../data
        # touch recovery.conf
               restore_command = 'pg_standby -l -d -s 2 -t /var/log/postgres/ 
postgresql.8.2.trigger /mnt/pitr/ %f %p %r 2>>pitr_standby.log'

        Postgresql.conf
               #archive_command = off  - disabled and commented out
               #archive_command = '' - disabled and command removed
               # archive_timeout = 60 - disabled

Is this correct, am I missing something or anything here isn't correct?

If anyone could give me some light with this it would be very much appreciated.

Thank you very much

Renato


Renato Oliveira
Systems Administrator
e-mail: renato.olive...@grant.co.uk

Tel: +44 (0)1763 260811
Fax: +44 (0)1763 262410
www.grant.co.uk<http://www.grant.co.uk/>

Grant Instruments (Cambridge) Ltd

Company registered in England, registration number 658133

Registered office address:
29 Station Road,
Shepreth,
CAMBS SG8 6GB
UK





P Please consider the environment before printing this email
CONFIDENTIALITY: The information in this e-mail and any attachments is 
confidential. It is intended only for the named recipients(s). If you are not 
the named recipient please notify the sender immediately and do not disclose 
the contents to another person or take copies.

VIRUSES: The contents of this e-mail or attachment(s) may contain viruses which 
could damage your own computer system. Whilst Grant Instruments (Cambridge) Ltd 
has taken every reasonable precaution to minimise this risk, we cannot accept 
liability for any damage which you sustain as a result of software viruses. You 
should therefore carry out your own virus checks before opening the 
attachment(s).

OpenXML: For information about the OpenXML file format in use within Grant 
Instruments please visit our 
website<http://www.grant.co.uk/Support/openxml.html>

Reply via email to