Re: Hot backup in PostgreSQL

From: Sushant Pawar <sushantxp(at)gmail(dot)com>
To: "W(dot)P(dot)" <laurentp(at)wp(dot)pl>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Hot backup in PostgreSQL
Date: 2020-10-22 13:02:14
Message-ID: CAF2=t-rHuv5k9O=3OCs90+FLjjOEfVzTvARUDJD2YnHrd0JArg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

If the requirement is to take online backup(hot) backup that can be used to
do point in time recovery, you can rely on low-level API functionality
mentioned earlier by Paul. If you to be care free about not missing any
specific mount point other than default mount point, you can use
pg_basebackup for online backup.

Pg_basebackup will take care of backing up all database files including
custom tablespace and has the option to compress the backup.You can refer
to below link for more information.

https://www.postgresql.org/docs/11/app-pgbasebackup.html

On Thu, Oct 22, 2020 at 12:12 PM W.P. <laurentp(at)wp(dot)pl> wrote:

> Hi there,
>
> how to do "hot backup" (copying files) while database running?
>
> Not using pg_dump.
>
> Is there some equivalent of Oracle (I knew v8) "ALTER DATABASE BEGIN
> BACKUP", which froze writes to database files, pushing everything to
> redo files?
>
>
> Laurent.
>
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2020-10-22 14:14:34 Re: Initplan placed at the righttree or the lefttree of joinnode
Previous Message Devrim Gündüz 2020-10-22 12:45:21 Re: How to get debuginfo from building source code