Re: Postgresql Database cant start after restore using pgBackRest

From: Deo Felix <deofelix9(at)gmail(dot)com>
To: Ron <ronljohnsonjr(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Postgresql Database cant start after restore using pgBackRest
Date: 2023-06-25 18:07:33
Message-ID: CALW=F4O7ZmTy+MqZX4Mu6=SA_yYcwOf1pc+cXPQkc=Zm3RfUaA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I have tried removing the archive command but still does not work

On Sun, 25 Jun 2023 at 20:30, Ron <ronljohnsonjr(at)gmail(dot)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: image.png]
>
>
> [image: image.png]
>
>
> In Thunderbird, at least, it's impossible to see those tiny images.
>
>
> --
> Born in Arizona, moved to Babylonia.
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Deo Felix 2023-06-25 18:07:53 Re: Postgresql Database cant start after restore using pgBackRest
Previous Message Ron 2023-06-25 17:30:05 Re: Postgresql Database cant start after restore using pgBackRest