Thread: Archive cleanup

Archive cleanup

From
pgdba pgdba
Date:
Hi,
My wal is copy in archive directory but archive directory always used more disk how to Automaticly cleanup my archive directory for oldest backup file 
Ex:
pg_archivecleanup -d /home/transaction/inst5/transactionlog 000000010000000F00000026.backup

Thanks 

Re: Archive cleanup

From
Jeff Janes
Date:
On Sun, Jul 4, 2021 at 3:37 PM pgdba pgdba <postgresdba12@outlook.com> wrote:
Hi,
My wal is copy in archive directory but archive directory always used more disk how to Automaticly cleanup my archive directory for oldest backup file 
Ex:
pg_archivecleanup -d /home/transaction/inst5/transactionlog 000000010000000F00000026.backup

Whatever deletes your .backup file such that a different one becomes the oldest one should handle that.  What is it that does that?

Cheers,

Jeff