On Thu, May 2, 2024 at 6:47 PM 'Rajasekar Arumugam' via Barman, Backup
and Recovery Manager for PostgreSQL <
pgba...@googlegroups.com> wrote:
>
> yes, I see some option in barman to setup on standby recovery.conf to fix this. I haven't tried it as no connectivity.
>
> restore_command = 'ssh barman@pgbackup barman get-wal SERVER %f > %p'
>
Uhm... restore_command should be what PostgreSQL wil use to get _new_
WALs once it has finished processing the current one in recovery mode.
Therefore, restore_command cannot be used out of the box to reocever a
few WAL files, it can be used as an inspiration to force the standby
to get the missing wals, or better, to make WALs copy local to the
machine that need them. I would not recommend this approach, however.
Luca