Re: Backup From HotStandby

From: Licio Matos <licio(dot)matos(at)gmail(dot)com>
To: Rui DeSousa <rui(at)crazybean(dot)net>
Cc: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Backup From HotStandby
Date: 2019-08-28 20:11:23
Message-ID: CAK6Tc4Ocmc-AhC1m7TYPGOvb32EaQPPygn4WSK5r--j72OhY5w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

@Rui DeSousa <rui(at)crazybean(dot)net>

I am running this on the primary, the question is if i can run this same
script on the replica.

Tks
*Licio Matos*

Em qua, 28 de ago de 2019 às 17:09, Rui DeSousa <rui(at)crazybean(dot)net>
escreveu:

>
>
> > On Aug 28, 2019, at 3:31 PM, Licio Matos <licio(dot)matos(at)gmail(dot)com> wrote:
> >
> > I have been using a lvm snapshot, all the database files are on the same
> disk.
>
> Sounds good; note that the filesystem will also need recovery thus you may
> want to consider trying to quiesce the filesystem before creating the
> snapshot to avoid filesystem issues.
>
>
> > My script start the pg_start_backup() make a lvm snapshot stop the
> backup and then copy the files do another filesystem from the snap and
> after to the tape.
>
> Hmm… are you running that on the replica? It should fail; unless you’re
> running it on the primary.
>
> I wouldn’t bother with pg_start_backup() to take a snapshot backup on the
> replica. When recovering, the database will first do its crash recovery
> and then apply any WAL files needed to reach your recovery target time.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Rui DeSousa 2019-08-28 20:38:47 Re: Backup From HotStandby
Previous Message Rui DeSousa 2019-08-28 20:09:57 Re: Backup From HotStandby