Archive_clean

Started by Sonam Sharmaover 6 years ago2 messagesgeneral
Jump to latest
#1Sonam Sharma
sonams1209@gmail.com

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

#2Laurenz Albe
laurenz.albe@cybertec.at
In reply to: Sonam Sharma (#1)
Re: Archive_clean

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