I have an incremental backup routine running daily saving Postgresql logs .
Every morning the full backup is performed:
pg_start_backup()
tar -cvzf /usr/local/pgsql/pgDataPITR/pgdatabk.tar
/usr/local/pgsql/pgDataPITR/
select pg_stop_backup();
I have a question regarding the deletion of Wallogs, at what point should I do this, before running the full backup, or after specifying a date for the deletion.