pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Raghavendra Rao J S V <raghavendrajsv@gmail.com>
Cc: Francisco Olarte <folarte@peoplecall.com>
Cc: Sergei Kornilov <sk@zsrv.org>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14963: Number of wal files are keep on increasing
Date: Thu, 14 Dec 2017 08:35:17 -0500
Message-ID: <20171214133517.GW4628@tamriel.snowman.net> (raw)
In-Reply-To: <20171214104815.ldrhdbq6vxfevx7h@alvherre.pgsql>
References: <CAEHH7R50pwkKJ13NPxxA3od+oL3pOX9vMAdxMxFzaRaKo9m0xg@mail.gmail.com>
	<20171214104815.ldrhdbq6vxfevx7h@alvherre.pgsql>

Alvaro, Raghavendra,

* Alvaro Herrera (alvherre@alvh.no-ip.org) wrote:
> Raghavendra Rao J S V wrote:
> > We are taking the backup of database everyday using pg_basebackup utility. We
> > have implemented a pg_basebackup utility through shell script.This will be
> > invoked everyday at 2AM and takes the backup of database.
> 
> This is a bad idea.  If you don't have a very firm grasp of how to write
> a backup system, it's better not to write it yourself, because there are
> many possible errors you can make that can lead you to end up with
> backups that look ok but are actually invalid.

Using pg_basebackup is *not* a bad idea, it's a good tool and works just
fine if used properly for a lot of environments.  The biggest concern
with pg_basebackup is making sure that the WAL is streamed with the
backup and kept (using --xlog-method=stream) and that you're checking
the results of the command to make sure it didn't error out.

Of course, with any backup solution, it's essential that backups be
fully restored and tested to make sure that they work.

There are certainly other tools out there for doing backups of PG with
their own pros and cons and while I wouldn't recommend that people try
to write their own backup software, using pg_basebackup isn't bad and we
shouldn't be telling people that.

Thanks!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (12+ messages)  latest in thread

Message-ID: <20171214133517.GW4628@tamriel.snowman.net>
Permalink:  ../20171214133517.GW4628@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20171214133517.GW4628@tamriel.snowman.net

 · 

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-bugs@postgresql.org
  Cc: sfrost@snowman.net, alvherre@alvh.no-ip.org, raghavendrajsv@gmail.com, folarte@peoplecall.com, sk@zsrv.org, david.g.johnston@gmail.com
  Subject: Re: BUG #14963: Number of wal files are keep on increasing
  In-Reply-To: <20171214133517.GW4628@tamriel.snowman.net>
  References: <CAEHH7R50pwkKJ13NPxxA3od+oL3pOX9vMAdxMxFzaRaKo9m0xg@mail.gmail.com> <20171214104815.ldrhdbq6vxfevx7h@alvherre.pgsql> <20171214133517.GW4628@tamriel.snowman.net>

* 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