Обсуждение: pgbackrest wiht arcchive mode off /no PITR configuration

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

pgbackrest wiht arcchive mode off /no PITR configuration

От
"Ghiurea, Isabella"
Дата:

Hi List.
I have a requirement to use pgabackrest to run ONLY full backups with no need need for PITR in PG cluster 17.5

I tried several configuration options seems that archive_mode can not be set to "off" for pgbackrest to run,  is this correct ?


I tried unsuccessfully : archive_mode = on with
archive_command = '/bin/true'

Second unsuccessfully configuration : archive_mode =on with
archive_command='cp %p /tmp/pgbackrest-archive/%f'


Can you suggest a working solution for my requirements ?


Re: pgbackrest wiht arcchive mode off /no PITR configuration

От
Tim Gerber
Дата:
If you aren't going to have archive_mode on, why not just use pg_basebackup?  Not backing up archivelogs kind of defeats the purpose of using pgbackrest in my opinion. 

Best Regards,
Tim

On Tue, Sep 23, 2025 at 9:34 AM Ghiurea, Isabella <Isabella.Ghiurea@nrc-cnrc.gc.ca> wrote:

Hi List.
I have a requirement to use pgabackrest to run ONLY full backups with no need need for PITR in PG cluster 17.5

I tried several configuration options seems that archive_mode can not be set to "off" for pgbackrest to run,  is this correct ?


I tried unsuccessfully : archive_mode = on with
archive_command = '/bin/true'

Second unsuccessfully configuration : archive_mode =on with
archive_command='cp %p /tmp/pgbackrest-archive/%f'


Can you suggest a working solution for my requirements ?