pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PG backrest restore
2+ messages / 2 participants
[nested] [flat]

* PG backrest restore
@ 2018-01-11 09:37 Aldo Sarmiento <aldo@bigpurpledot.com>
  2018-01-11 09:41 ` Re: PG backrest restore Stefan Fercot <stefan.fercot@dalibo.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Aldo Sarmiento @ 2018-01-11 09:37 UTC (permalink / raw)
  To: pgsql-admin

I have streaming replication setup between a master/slave. The other day
the slave had some issues and couldn’t be brought up before WAL logs got
archived via pgbackrest archive command.

Is there a way to bring the replica up to date using the pg backrest
archives so that I can start streaming again? Currently it’s complaining
that the master doesn’t have the WAL logs in pg_xlog directory to do so.

Thank you,
Aldo

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: PG backrest restore
  2018-01-11 09:37 PG backrest restore Aldo Sarmiento <aldo@bigpurpledot.com>
@ 2018-01-11 09:41 ` Stefan Fercot <stefan.fercot@dalibo.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Stefan Fercot @ 2018-01-11 09:41 UTC (permalink / raw)
  To: Aldo Sarmiento <aldo@bigpurpledot.com>; +Cc: pgsql-admin

Hi,

Do you have some restore_command in the recovery.conf of your replica ?

i.e.

restore_command = '/usr/bin/pgbackrest --stanza=demo archive-get %f "%p"'


On 01/11/2018 10:37 AM, Aldo Sarmiento wrote:
> I have streaming replication setup between a master/slave. The other
> day the slave had some issues and couldn’t be brought up before WAL
> logs got archived via pgbackrest archive command. Is there a way to
> bring the replica up to date using the pg backrest archives so that I
> can start streaming again? Currently it’s complaining that the master
> doesn’t have the WAL logs in pg_xlog directory to do so. Thank you, Aldo

-- 
Stefan FERCOT
http://dalibo.com - http://dalibo.org

Attachments:

  signature.asc (application/pgp-signature, 487B) download

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-01-11 09:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-11 09:37 PG backrest restore Aldo Sarmiento <aldo@bigpurpledot.com>
2018-01-11 09:41 ` Stefan Fercot <stefan.fercot@dalibo.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox