pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: Forums postgresql <pgsql-general@postgresql.org>
Subject: Re: pgbackrest restore to new location?
Date: Tue, 17 Sep 2019 05:00:33 -0500
Message-ID: <09baf146-9f0e-96d8-9ccf-afbe810f179f@gmail.com> (raw)
In-Reply-To: <CAKoxK+7cr=Eykr7ygAToYEAUMQ35aLH0-4mFkar_oNA3pGFJ2w@mail.gmail.com>
References: <1896f86b-d77f-3ea6-b304-0cb8912cab79@gmail.com>
	<CAKoxK+7cr=Eykr7ygAToYEAUMQ35aLH0-4mFkar_oNA3pGFJ2w@mail.gmail.com>

On 9/17/19 4:29 AM, Luca Ferrari wrote:
> On Tue, Sep 17, 2019 at 3:09 AM Ron <ronljohnsonjr@gmail.com> wrote:
>> Hi,
>>
>> In order to do this, do I create a new stanza in config file which has
>> pg1-path point to the new/empty directory structure while still pointing to
>> the existing backup directory, and restore that stanza?
> No, I would do this:
> 1) execute stop for that stanza on the backup machine
> 2) change the pg1-path for that stanza on the target machine
> 3) execute the restore command on the target machine
> 4) adjust backup machine stanza path and 'start' it again.
>
> If you create a new stanza, pgbackrest will not find it in the backup
> repository.

Thanks, Luca.  I realized that mistake when trying the restore.

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".

-- 
Angular momentum makes the world go 'round.





view thread (9+ messages)  latest in thread

Message-ID: <09baf146-9f0e-96d8-9ccf-afbe810f179f@gmail.com>
Permalink:  ../09baf146-9f0e-96d8-9ccf-afbe810f179f@gmail.com/
Also on:    postgresql.org/message-id/09baf146-9f0e-96d8-9ccf-afbe810f179f@gmail.com

 · 

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: ronljohnsonjr@gmail.com
  Subject: Re: pgbackrest restore to new location?
  In-Reply-To: <09baf146-9f0e-96d8-9ccf-afbe810f179f@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>

* 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