Re: Postgresql Database cant start after restore using pgBackRest - Mailing list pgsql-admin

From Deo Felix
Subject Re: Postgresql Database cant start after restore using pgBackRest
Date
Msg-id CALW=F4O7ZmTy+MqZX4Mu6=SA_yYcwOf1pc+cXPQkc=Zm3RfUaA@mail.gmail.com
Whole thread Raw
In response to Re: Postgresql Database cant start after restore using pgBackRest  (Ron <ronljohnsonjr@gmail.com>)
List pgsql-admin
I have tried removing the archive command but still does not work

On Sun, 25 Jun 2023 at 20:30, Ron <ronljohnsonjr@gmail.com> wrote:
On 6/25/23 11:53, Deo Felix wrote:

 I am doing backup with pgbackrest in the database server every day at night, I was testing to restore the backup in another server, the restore was successfully however the database cant start

pgbackrest --stanza=data --delta --log-level-console=detail restore


Here's what worked for me:
SetName=20221106-000003F
pgbackrest restore \
    --stanza=$SomeStanza \
    --pg1-path=$NewPGData \
    --log-level-file=detail \
    --log-level-console=detail \
    --process-max=$ThreadCnt \
    --type=immediate --set=$SetName

An alternative which should also work:
RestoreTime="2022-11-06 02:00:00.0000"
pgbackrest restore \
    --stanza=$SomeStanza \
    --pg1-path=$NewPGData \
    --log-level-file=detail \
    --log-level-console=detail \
    --process-max=$ThreadCnt \
    --type=time --target="$RestoreTime"

image.png


image.png


In Thunderbird, at least, it's impossible to see those tiny images.


--
Born in Arizona, moved to Babylonia.
Attachment

pgsql-admin by date:

Previous
From: Ron
Date:
Subject: Re: Postgresql Database cant start after restore using pgBackRest
Next
From: Deo Felix
Date:
Subject: Re: Postgresql Database cant start after restore using pgBackRest