pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Steele <david@pgmasters.net>
To: Luca Ferrari <fluca1978@gmail.com>
To: Ron <ronljohnsonjr@gmail.com>
Cc: Forums postgresql <pgsql-general@postgresql.org>
Subject: Re: pgbackrest restore to new location?
Date: Tue, 17 Sep 2019 07:48:27 -0400
Message-ID: <47627a69-9899-1457-77ba-4bb547dadf69@pgmasters.net> (raw)
In-Reply-To: <CAKoxK+6_c67eZDzADdTgfP6j5=76CVkWXT7U+0CF2qqFZZyH_Q@mail.gmail.com>
References: <1896f86b-d77f-3ea6-b304-0cb8912cab79@gmail.com>
	<CAKoxK+7cr=Eykr7ygAToYEAUMQ35aLH0-4mFkar_oNA3pGFJ2w@mail.gmail.com>
	<09baf146-9f0e-96d8-9ccf-afbe810f179f@gmail.com>
	<CAKoxK+6_c67eZDzADdTgfP6j5=76CVkWXT7U+0CF2qqFZZyH_Q@mail.gmail.com>

On 9/17/19 7:23 AM, Luca Ferrari wrote:
> On Tue, Sep 17, 2019 at 12:00 PM Ron <ronljohnsonjr@gmail.com> wrote:
>> The real problem is that after doing that, "pg_ctl start -D
>> /path/to/new/data" fails with "PANIC: could not locate a valid checkpoint
>> record".

Sounds like backup_label is missing or has been deleted.

The easiest way to restore to a new location is just to copy
pgbackrest.conf from the primary (or create a new one) with the same
stanza and then alter pg1-path in pgbackrest.conf or at the command line.

Regards,

-- 
-David
david@pgmasters.net





view thread (9+ messages)  latest in thread

Message-ID: <47627a69-9899-1457-77ba-4bb547dadf69@pgmasters.net>
Permalink:  ../47627a69-9899-1457-77ba-4bb547dadf69@pgmasters.net/
Also on:    postgresql.org/message-id/47627a69-9899-1457-77ba-4bb547dadf69@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: david@pgmasters.net, fluca1978@gmail.com, ronljohnsonjr@gmail.com
  Subject: Re: pgbackrest restore to new location?
  In-Reply-To: <47627a69-9899-1457-77ba-4bb547dadf69@pgmasters.net>
  References: <1896f86b-d77f-3ea6-b304-0cb8912cab79@gmail.com> <CAKoxK+7cr=Eykr7ygAToYEAUMQ35aLH0-4mFkar_oNA3pGFJ2w@mail.gmail.com> <09baf146-9f0e-96d8-9ccf-afbe810f179f@gmail.com> <CAKoxK+6_c67eZDzADdTgfP6j5=76CVkWXT7U+0CF2qqFZZyH_Q@mail.gmail.com> <47627a69-9899-1457-77ba-4bb547dadf69@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