Thread: Archive_clean

Archive_clean

From
Sonam Sharma
Date:
I have enabled the archiving and the archive path is getting filled frequently. can I delete the logs from archive path after taking backup ? 

Re: Archive_clean

From
Laurenz Albe
Date:
On Fri, 2019-10-04 at 13:34 +0530, Sonam Sharma wrote:
> I have enabled the archiving and the archive path is getting filled
> frequently. can I delete the logs from archive path after taking
> backup ? 

Sure, just make sure you delete nothing that is still needed to recover
from the backup.

pg_archivecleanup <directory> <*.backup file>

can make the task simpler.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com