Re: WAL archiving from a standby backup strategy Postgresql 9.3

From: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
To: Kal Black <kaloblak(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: WAL archiving from a standby backup strategy Postgresql 9.3
Date: 2014-04-23 22:44:12
Message-ID: CAL_0b1tjHPzMqftmj-mfsb0F=CgaTJv=4vQQbF5TC2YWFpGfqA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Apr 23, 2014 at 10:26 AM, Kal Black <kaloblak(at)gmail(dot)com> wrote:
> I am trying to figure out if wal archiving from a standby is possible and a
> viable option for a backup strategy on Postgresql 9.3. The idea is to be
> able to take regular base backups and wal archives from a standby server in
> a remote DR site. Unfortunately, the archive_command functionality is not
> available while the server is in standby_mode mode so I am wandering if the
> wal archiving could be done successfully using alternative ways like rsync,
> lsyncd etc. Does anyone tried to go this path and eventually share his
> experience.

9.3 introduced a cascading replication feature [1] that allows you to
stream WAL from standbys to other standbys. Instead of a downstream
standby you can use pg_receivexlog [2] to receive a WAL stream from
the upstream one and write it to a local storage. Also, starting from
9.2, you can make base backups from standbys [3].

[1] http://www.postgresql.org/docs/9.3/static/warm-standby.html#CASCADING-REPLICATION
[2] http://www.postgresql.org/docs/9.3/static/app-pgreceivexlog.html
[3] http://www.postgresql.org/docs/9.3/static/app-pgbasebackup.html

--
Kind regards,
Sergey Konoplev
PostgreSQL Consultant and DBA

http://www.linkedin.com/in/grayhemp
+1 (415) 867-9984, +7 (901) 903-0499, +7 (988) 888-1979
gray(dot)ru(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2014-04-24 04:10:12 Re: portable version for Usb Pen
Previous Message Bruce Momjian *EXTERN* 2014-04-23 21:39:29 All caught up