public inbox for [email protected]
help / color / mirror / Atom feedWAL replication and Archive command for pgbackrest on same server conf
2+ messages / 2 participants
[nested] [flat]
* WAL replication and Archive command for pgbackrest on same server conf
@ 2024-08-19 13:10 KK CHN <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: KK CHN @ 2024-08-19 13:10 UTC (permalink / raw)
To: pgsql-general
Hi List ,
I am trying to configure the pgbackrest on a live server ( RHEL9, EPAS16
and Pgbacrest .2.52) which is having a working WAL archive
configuration to a standby server in postgresql.conf as follows
1. archive_mod =on
2. archive_level=replica
3. archive_command = 'cp %p /data/archive/%f'
To do the pgbackrest conf on the same archive_command directive (So
both the existing WAL configuration as well as my new pgbackrest option
both will work smoothly. how to add an entry in line 3 ??
archive_command = 'pgbackrest --stanza=Demo archive-push cp %p
/data/archive/%f '
Please correct me If I am doing wrong in the above line..
Thank you,
Krish
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: WAL replication and Archive command for pgbackrest on same server conf
@ 2024-08-19 13:20 Ruben Morais <[email protected]>
parent: KK CHN <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Ruben Morais @ 2024-08-19 13:20 UTC (permalink / raw)
To: KK CHN <[email protected]>; +Cc: pgsql-general
hi,
you can combine:
archive_command = 'pgbackrest --stanza=Demo archive-push %p && cp %p
/data/archive/%f '
You need to change your standby replica to consume the wals from pgbackrest
if you want instead to use both commands.
*Rúben Morais*
*(+351) 965775713*
<https://pt.linkedin.com/pub/rúben-morais/21/b44/b99;
*[email protected]
<[email protected]>*
On Mon, Aug 19, 2024 at 2:10 PM KK CHN <[email protected]> wrote:
> Hi List ,
>
> I am trying to configure the pgbackrest on a live server ( RHEL9, EPAS16
> and Pgbacrest .2.52) which is having a working WAL archive
> configuration to a standby server in postgresql.conf as follows
>
>
> 1. archive_mod =on
> 2. archive_level=replica
> 3. archive_command = 'cp %p /data/archive/%f'
>
>
> To do the pgbackrest conf on the same archive_command directive (So
> both the existing WAL configuration as well as my new pgbackrest option
> both will work smoothly. how to add an entry in line 3 ??
>
> archive_command = 'pgbackrest --stanza=Demo archive-push cp %p
> /data/archive/%f '
>
>
>
> Please correct me If I am doing wrong in the above line..
>
>
> Thank you,
> Krish
>
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2024-08-19 13:20 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-08-19 13:10 WAL replication and Archive command for pgbackrest on same server conf KK CHN <[email protected]>
2024-08-19 13:20 ` Ruben Morais <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox