pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: W.P. <laurentp@wp.pl>
Cc: pgsql-general mailing list <pgsql-general@postgresql.org>
Subject: Re: Hot backup in PostgreSQL
Date: Thu, 22 Oct 2020 10:18:12 +0200
Message-ID: <20201022081812.GA4030@depesz.com> (raw)
In-Reply-To: <17611fd6-ab17-793a-3bf9-74bfb719a1eb@wp.pl>
References: <486ad2c5-01e0-fbf7-b09d-88898b28cdb0@wp.pl>
	<20201022073517.GA22554@depesz.com>
	<17611fd6-ab17-793a-3bf9-74bfb719a1eb@wp.pl>

On Thu, Oct 22, 2020 at 09:45:36AM +0200, W.P. wrote:
> > There are many ways to do it. To be able to suggest proper solution we'd
> > need to know:
> > 1. what is the problem with pg_dump?
> Time (I guess a bit, but copying files could be done using rsync, so much
> faster).

Is it *really* too slow for you? Please note that you can easily make it
much faster by doing -Fd -j $( nproc ).

> > 2. what is the exact problem you're solving (clearly it's not only
> >     "having backup", as this is done using pg_dump without any problem).
> Maybe this is old way, but at some point of time I was doing Oracle 8
> backups just by copying files.
> Also I guess, restore using copy files should be much faster than using psql
> / pg_restore.

You might want to read this:
https://www.postgresql.org/docs/current/continuous-archiving.html#BACKUP-LOWLEVEL-BASE-BACKUP

Best regards,

depesz






view thread (9+ messages)  latest in thread

Message-ID: <20201022081812.GA4030@depesz.com>
Permalink:  ../20201022081812.GA4030@depesz.com/
Also on:    postgresql.org/message-id/20201022081812.GA4030@depesz.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: depesz@depesz.com, laurentp@wp.pl
  Subject: Re: Hot backup in PostgreSQL
  In-Reply-To: <20201022081812.GA4030@depesz.com>
  References: <486ad2c5-01e0-fbf7-b09d-88898b28cdb0@wp.pl> <20201022073517.GA22554@depesz.com> <17611fd6-ab17-793a-3bf9-74bfb719a1eb@wp.pl> <20201022081812.GA4030@depesz.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