Re: BUG #14963: Number of wal files are keep on increasing

From: Raghavendra Rao J S V <raghavendrajsv(at)gmail(dot)com>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Francisco Olarte <folarte(at)peoplecall(dot)com>, Sergei Kornilov <sk(at)zsrv(dot)org>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14963: Number of wal files are keep on increasing
Date: 2017-12-14 13:57:58
Message-ID: CAEHH7R62CDv4sdvw9moJ279JDVDwFbbfZ4a-2W+nnDHZEwWzCg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thanks for the support.

On 14-Dec-2017 7:05 PM, "Stephen Frost" <sfrost(at)snowman(dot)net> wrote:

> Alvaro, Raghavendra,
>
> * Alvaro Herrera (alvherre(at)alvh(dot)no-ip(dot)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
>

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2017-12-14 14:16:57 Re: BUG #14963: Number of wal files are keep on increasing
Previous Message Stephen Frost 2017-12-14 13:35:17 Re: BUG #14963: Number of wal files are keep on increasing