From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: 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 07:48:15 -0300
Message-ID: <20171214104815.ldrhdbq6vxfevx7h@alvherre.pgsql> (raw)
In-Reply-To: <CAEHH7R50pwkKJ13NPxxA3od+oL3pOX9vMAdxMxFzaRaKo9m0xg@mail.gmail.com>
Raghavendra Rao J S V wrote:
> Thank you very much for your explanation.
>
> 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.
I suggest you use a battle-tested tool such as https://pgbarman.org/ to
do the backups for you. It comes with instructions about what to use in
archive_command, how to take base backups, simple mechanism to remove
old backups, easy to use restore operations, etc.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: 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: <20171214104815.ldrhdbq6vxfevx7h@alvherre.pgsql>
References: <CAEHH7R50pwkKJ13NPxxA3od+oL3pOX9vMAdxMxFzaRaKo9m0xg@mail.gmail.com> <20171214104815.ldrhdbq6vxfevx7h@alvherre.pgsql>
* 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