pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Förster <paul.foerster@gmail.com>
To: W.P. <laurentp@wp.pl>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Hot backup in PostgreSQL
Date: Thu, 22 Oct 2020 08:46:58 +0200
Message-ID: <0A5B194D-1EDD-4354-B6DB-564CCF3ED63D@gmail.com> (raw)
In-Reply-To: <486ad2c5-01e0-fbf7-b09d-88898b28cdb0@wp.pl>
References: <486ad2c5-01e0-fbf7-b09d-88898b28cdb0@wp.pl>

Hi Laurent,

> On 22. Oct, 2020, at 08:42, W.P. <laurentp@wp.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?

yes, there is. Please read the chapter: 25.3.3.1. Making A Non-Exclusive Low-Level Backup

https://www.postgresql.org/docs/current/continuous-archiving.html#BACKUP-LOWLEVEL-BASE-BACKUP

Cheers,
Paul




view thread (9+ messages)  latest in thread

Message-ID: <0A5B194D-1EDD-4354-B6DB-564CCF3ED63D@gmail.com>
Permalink:  ../0A5B194D-1EDD-4354-B6DB-564CCF3ED63D@gmail.com/
Also on:    postgresql.org/message-id/0A5B194D-1EDD-4354-B6DB-564CCF3ED63D@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: paul.foerster@gmail.com, laurentp@wp.pl
  Subject: Re: Hot backup in PostgreSQL
  In-Reply-To: <0A5B194D-1EDD-4354-B6DB-564CCF3ED63D@gmail.com>
  References: <486ad2c5-01e0-fbf7-b09d-88898b28cdb0@wp.pl> <0A5B194D-1EDD-4354-B6DB-564CCF3ED63D@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox