Re: pgbackrest restore to new location? - Mailing list pgsql-general

From David Steele
Subject Re: pgbackrest restore to new location?
Date
Msg-id 47627a69-9899-1457-77ba-4bb547dadf69@pgmasters.net
Whole thread Raw
In response to Re: pgbackrest restore to new location?  (Luca Ferrari <fluca1978@gmail.com>)
Responses Re: pgbackrest restore to new location?
List pgsql-general
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



pgsql-general by date:

Previous
From: Luca Ferrari
Date:
Subject: Re: pgbackrest restore to new location?
Next
From: Ashkar Dev
Date:
Subject: Re: PostgreSQL License