Barman

Поиск
Список
Период
Сортировка
Искать

Barman

От:
Daulat Ram <Daulat.Ram@exponential.com>
Дата:

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.

 

 

 Thanks,

 

Re: Barman

От:
Tomas Vondra <tomas.vondra@2ndquadrant.com>
Дата:
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 pretty much 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 about creating 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 incremental backup, 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 probably go 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


Re: Barman

От:
Tomas Vondra <tomas.vondra@2ndquadrant.com>
Дата:
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 pretty much 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 about creating 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 incremental backup, 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 probably go 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


RE: Barman

От:
Daulat Ram <Daulat.Ram@exponential.com>
Дата:
Thanks Tomas for your inputs. Suppose, if we have database in TB's with OLTP applications then what will be suitable backup strategy. 


-----Original Message-----
From: Tomas Vondra  
Sent: Friday, November 1, 2019 12:27 AM
To: Daulat Ram 
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 pretty much 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 about creating 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 incremental backup, 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 probably go 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


RE: Barman

От:
Daulat Ram <Daulat.Ram@exponential.com>
Дата:
Thanks Tomas for your inputs. Suppose, if we have database in TB's with OLTP applications then what will be suitable backup strategy. 


-----Original Message-----
From: Tomas Vondra  
Sent: Friday, November 1, 2019 12:27 AM
To: Daulat Ram 
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 pretty much 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 about creating 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 incremental backup, 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 probably go 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


FAQ