Обсуждение: Archive_clean

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

Archive_clean

От
Sonam Sharma
Дата:
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

От
Laurenz Albe
Дата:
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