pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Steele <david@pgmasters.net>
To: Deo Felix <deofelix9@gmail.com>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: Postgresql Database cant start after restore using pgBackRest
Date: Tue, 27 Jun 2023 10:26:16 +0200
Message-ID: <81a5d38d-db54-30ff-0b7c-054a950c5641@pgmasters.net> (raw)
In-Reply-To: <CALW=F4PgGSJX-ix0NgbD4XFCezt5ZNTDvTLvJUG0yR89z08tog@mail.gmail.com>
References: <CALW=F4MZsscvQ-x+fGmxSY2q4xaGk1stKPsKuts-om-ewdeR5A@mail.gmail.com>
	<484cbe3c-eb15-5327-df72-3338c17c7855@pgmasters.net>
	<29c782b4-9ae3-364d-bca9-44f48c340aa3@gmail.com>
	<CALW=F4PgGSJX-ix0NgbD4XFCezt5ZNTDvTLvJUG0yR89z08tog@mail.gmail.com>

On 6/27/23 07:41, Deo Felix wrote:
> In the postgresql.auto.conf i have this configs
> restore_command = 'pgbackrest --pg1-path=/var/lib/postgres/main 
> --stanza=data archive-get %f "%p"'
> recovery_target = 'immediate'
> recovery_target_timeline = 'current'
> 
> But still I the database cant start

You will need to redo your pgbackrest restore with 
--target-timeline=current and then restart postgres to start recovery 
with the correct settings.

Regards,
-David





view thread (14+ messages)  latest in thread

Message-ID: <81a5d38d-db54-30ff-0b7c-054a950c5641@pgmasters.net>
Permalink:  ../81a5d38d-db54-30ff-0b7c-054a950c5641@pgmasters.net/
Also on:    postgresql.org/message-id/81a5d38d-db54-30ff-0b7c-054a950c5641@pgmasters.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: david@pgmasters.net, deofelix9@gmail.com, ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Postgresql Database cant start after restore using pgBackRest
  In-Reply-To: <81a5d38d-db54-30ff-0b7c-054a950c5641@pgmasters.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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