Re: Help with PITR in PostgreSQL 8.4

From: "Nestor A(dot) Diaz" <nestor(at)tiendalinux(dot)com>
To: chiru r <chirupg(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Help with PITR in PostgreSQL 8.4
Date: 2013-07-17 15:44:54
Message-ID: 51E6BBF6.2000000@tiendalinux.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 07/17/2013 03:05 AM, chiru r wrote:
> Hi Nestor,
>
> So the question is: Can I have some continues wal archiving and then
> transfer all WAL files to *standby* everyday, recover the database and
> backup all data without having to rsync the data every time i make a
> backup ?
>
> Yes,You can do as you mentioned.
>
> 1) set the below parameters in Postgresql.conf file on Primary server.
>
> archive_mode=on
> archive_command='cp %p /opt/backup/wal_archives/%f'
>
> 2)apply these wall files to standby server hourly/daily basis as your
> requirement.
> configure the recovery.conf file.
Hi Chiru, I have done archiving on primary server, and recovery on
standby server, howerver, after the first recovery I am unable to
recover more wal files on standby server

Can it be possible in 8.4 ? or just in 9.1 ?

This is the recovery I use:

<< EOF

restore_command = '/usr/lib/postgresql/8.4/bin/pg_standby -l -d -s 2 -t /var/run/postgresql/8.4-main.trigger /var/lib/postgresql/8.4/main/wal-archive %f %p %r 2>>/var/log/postgresql/postgresql-8.4-main-standby.log'
recovery_end_command = 'rm -f /var/run/postgresql/8.4-main.trigger'

EOF

Slds.

>
> Best Regards,
> Chiru
>

--
Typed on my key64.org keyboard

Nestor A Diaz

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Gilberto Castillo 2013-07-17 15:54:51 Re: Help with PITR in PostgreSQL 8.4
Previous Message Javier Urbano Contreras 2013-07-17 15:00:46 comparison schema/data