RE: Barman

Поиск
Список
Период
Сортировка
От Daulat Ram
Тема RE: Barman
Дата
Msg-id MN2PR01MB58549A888A195BDB4E4793EB9B620@MN2PR01MB5854.prod.exchangelabs.com
обсуждение исходный текст
Ответ на Re: Barman  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Список pgsql-general
Thanks Tomas for your inputs. Suppose, if we have database in TB's with OLTP applications then what will be suitable
backupstrategy.  


-----Original Message-----
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Sent: Friday, November 1, 2019 12:27 AM
To: Daulat Ram <Daulat.Ram@exponential.com>
Cc: pgsql-general@lists.postgresql.org; pgsql-performance@lists.postgresql.org
Subject: Re: Barman

On Thu, Oct 31, 2019 at 05:29:34PM +0000, Daulat Ram wrote:
>Hi All,
>
>We have configured postgres 11.2 in streaming replication (primary &
>Standby)  on docker and I am looking to initiate the Postgres backup
>using barman. As I know there are few options for taking backup using
>barman.
>
>RSYNC backup
>Incremental Backups
>Streaming Backup with continuous WAL streaming Centralized and
>Catalogued Backups
>
>Which is the best option for backup using barman? So that we can keep
>the database safe in case of disaster? I feel the Incremental Backups
>are most useful to perform the PITR but I want to know the experts
>suggestions.
>

You're mixing a number of topics, here. Firstly, all backups done by barman are centralized and catalogued, that's
prettymuch one of the main purposes of barman. 

When it comes to backup methods, there are two basic methods. rsync and postgres (which means pg_basebackup). This is
aboutcreating the initial base backup. Both methods then can replicate WAL by either streaming or archive_command. 

So first you need to decide whether to use rsync and pg_basebackup, where rsync allows advanced features like
incrementalbackup, parallel backup and deduplication. 

Then you need to decide whether to use archive_command or streaming (i.e. pg_receivexlog).

The "right" backup method very much depends on the size of your database, activity, and so on. By default you should
probablygo with the default option, described as "scenario 1" in the barman docs, i.e. 
pg_basebackup (backup_method = postgres) and WAL streaming.

regards

--
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-general по дате отправления:

Предыдущее
От: M Tarkeshwar Rao
Дата:
Сообщение: RE: Getting following error in using cursor to fetch the records froma large table in c language
Следующее
От: M Tarkeshwar Rao
Дата:
Сообщение: Getting following error in using cursor to fetch the records from alarge table in c language(current transaction is aborted, commands ignoreduntil end of transaction block)